original_string: public function getModulesPath()
      {
          $paths = $this->locator->getModulesPath();
          foreach (array_keys($paths) as $module) {
              $paths[$module] .= DIRECTORY_SEPARATOR . TemplateReference::MODULE_VIEWS_DIRECTORY;
          }
  
          return $paths;
      }
code: public function getModulesPath()
      {
          $paths = $this->locator->getModulesPath();
          foreach (array_keys($paths) as $module) {
              $paths[$module] .= DIRECTORY_SEPARATOR . TemplateReference::MODULE_VIEWS_DIRECTORY;
          }
  
          return $paths;
      }
code_tokens: public function getModulesPath ( ) { $ paths = $ this -> locator -> getModulesPath ( ) ; foreach ( array_keys ( $ paths ) as $ module ) { $ paths [ $ module ] .= DIRECTORY_SEPARATOR . TemplateReference :: MODULE_VIEWS_DIRECTORY ; } return $ paths ; }
docstring: Returns an array of paths to modules views dir.
  
  @return array An array of paths to each loaded module
docstring_tokens: Returns an array of paths to modules views dir .