original_string: public function getParentDirectories()
      {
          if ($this->isCurrentDirectoryBase()) {
              return [];
          }
  
          $currentDir = $this->currentDir;
          $dirs = [];
          do {
              $dir = dirname($currentDir);
              $dirs[] = $this->getPathRelativeToBaseDir($dir)
                  ?: DIRECTORY_SEPARATOR;
              $currentDir = $dir;
          } while ($dir !== $this->baseDir);
  
          return array_reverse($dirs);
      }
code: public function getParentDirectories()
      {
          if ($this->isCurrentDirectoryBase()) {
              return [];
          }
  
          $currentDir = $this->currentDir;
          $dirs = [];
          do {
              $dir = dirname($currentDir);
              $dirs[] = $this->getPathRelativeToBaseDir($dir)
                  ?: DIRECTORY_SEPARATOR;
              $currentDir = $dir;
          } while ($dir !== $this->baseDir);
  
          return array_reverse($dirs);
      }
code_tokens: public function getParentDirectories ( ) { if ( $ this -> isCurrentDirectoryBase ( ) ) { return [ ] ; } $ currentDir = $ this -> currentDir ; $ dirs = [ ] ; do { $ dir = dirname ( $ currentDir ) ; $ dirs [ ] = $ this -> getPathRelativeToBaseDir ( $ dir ) ? : DIRECTORY_SEPARATOR ; $ currentDir = $ dir ; } while ( $ dir !== $ this -> baseDir ) ; return array_reverse ( $ dirs ) ; }
docstring: Returns parent directories of current directory.
  
  @return array
docstring_tokens: Returns parent directories of current directory .