original_string: public function getRelativePathToCurrentDirectoryParent()
      {
          if ($this->baseDir === $this->currentDir) {
              return DIRECTORY_SEPARATOR;
          }
  
          $path = realpath($this->currentDir . DIRECTORY_SEPARATOR . '..');
  
          return $this->getPathRelativeToBaseDir($path) ?: DIRECTORY_SEPARATOR;
      }
code: public function getRelativePathToCurrentDirectoryParent()
      {
          if ($this->baseDir === $this->currentDir) {
              return DIRECTORY_SEPARATOR;
          }
  
          $path = realpath($this->currentDir . DIRECTORY_SEPARATOR . '..');
  
          return $this->getPathRelativeToBaseDir($path) ?: DIRECTORY_SEPARATOR;
      }
code_tokens: public function getRelativePathToCurrentDirectoryParent ( ) { if ( $ this -> baseDir === $ this -> currentDir ) { return DIRECTORY_SEPARATOR ; } $ path = realpath ( $ this -> currentDir . DIRECTORY_SEPARATOR . '..' ) ; return $ this -> getPathRelativeToBaseDir ( $ path ) ? : DIRECTORY_SEPARATOR ; }
docstring: Returns path to parent of current directory.
  
  @return string
docstring_tokens: Returns path to parent of current directory .