original_string: public function resolveLocalPath($path)
      {
          if (is_array($path)) {
              $paths  = array();
              foreach ($path as $p) {
                  $paths[]    = $this->resolveLocalPath($p);
              }
              return $paths;
          } else {
              $path   = FileSystem::normalizeDirectorySeparator($path);
              if (strpos($path, $this->getRepositoryPath()) === 0) {
                  $path  = substr($path, strlen($this->getRepositoryPath()));
              }
              return ltrim($path, '/');
          }
      }
code: public function resolveLocalPath($path)
      {
          if (is_array($path)) {
              $paths  = array();
              foreach ($path as $p) {
                  $paths[]    = $this->resolveLocalPath($p);
              }
              return $paths;
          } else {
              $path   = FileSystem::normalizeDirectorySeparator($path);
              if (strpos($path, $this->getRepositoryPath()) === 0) {
                  $path  = substr($path, strlen($this->getRepositoryPath()));
              }
              return ltrim($path, '/');
          }
      }
code_tokens: public function resolveLocalPath ( $ path ) { if ( is_array ( $ path ) ) { $ paths = array ( ) ; foreach ( $ path as $ p ) { $ paths [ ] = $ this -> resolveLocalPath ( $ p ) ; } return $ paths ; } else { $ path = FileSystem :: normalizeDirectorySeparator ( $ path ) ; if ( strpos ( $ path , $ this -> getRepositoryPath ( ) ) === 0 ) { $ path = substr ( $ path , strlen ( $ this -> getRepositoryPath ( ) ) ) ; } return ltrim ( $ path , '/' ) ; } }
docstring: Resolves an absolute path into a path relative to the repository path
  
  @param   string|array  $path         A file system path (or an array of paths)
  @return  string|array                Either a single path or an array of paths is returned
docstring_tokens: Resolves an absolute path into a path relative to the repository path