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