original_string: protected function getPotentialDirectories($workingDir)
    {
      $paths = array();
      $path = '';
      foreach (explode('/', $workingDir) as $part) {
        $path .= $part . '/';
        $paths[] = rtrim($path, '/');
      }
      return $paths;
    }
code: protected function getPotentialDirectories($workingDir)
    {
      $paths = array();
      $path = '';
      foreach (explode('/', $workingDir) as $part) {
        $path .= $part . '/';
        $paths[] = rtrim($path, '/');
      }
      return $paths;
    }
code_tokens: protected function getPotentialDirectories ( $ workingDir ) { $ paths = array ( ) ; $ path = '' ; foreach ( explode ( '/' , $ workingDir ) as $ part ) { $ path .= $ part . '/' ; $ paths [ ] = rtrim ( $ path , '/' ) ; } return $ paths ; }
docstring: Helper to provide potential directories to look for .buddy.yml files.
  
  @return array
  List of directory paths.
docstring_tokens: Helper to provide potential directories to look for . buddy . yml files .