original_string: public function getVendorPaths()
      {
          $base  = dirname($this->path);
          $paths = [];
          foreach ($this->xml->xpath('/libraries/library/location') as $location) {
              $location = trim((string) $location, '/');
              $location = $base.'/'.$location;
  
              if (strpos($location, '*') !== false) {
                  $locations = glob($location);
                  if (empty($locations)) {
                      throw new \RuntimeException(sprintf('Failed to run glob on path: %s', $location));
                  }
                  $paths = array_merge($paths, $locations);
              } elseif (!file_exists($location)) {
                  throw new \RuntimeException(sprintf('The %s contains a non-existent path: %s', $this->path, $location));
              } else {
                  $paths[] = $location;
              }
          }
  
          return $paths;
      }
code: public function getVendorPaths()
      {
          $base  = dirname($this->path);
          $paths = [];
          foreach ($this->xml->xpath('/libraries/library/location') as $location) {
              $location = trim((string) $location, '/');
              $location = $base.'/'.$location;
  
              if (strpos($location, '*') !== false) {
                  $locations = glob($location);
                  if (empty($locations)) {
                      throw new \RuntimeException(sprintf('Failed to run glob on path: %s', $location));
                  }
                  $paths = array_merge($paths, $locations);
              } elseif (!file_exists($location)) {
                  throw new \RuntimeException(sprintf('The %s contains a non-existent path: %s', $this->path, $location));
              } else {
                  $paths[] = $location;
              }
          }
  
          return $paths;
      }
code_tokens: public function getVendorPaths ( ) { $ base = dirname ( $ this -> path ) ; $ paths = [ ] ; foreach ( $ this -> xml -> xpath ( '/libraries/library/location' ) as $ location ) { $ location = trim ( ( string ) $ location , '/' ) ; $ location = $ base . '/' . $ location ; if ( strpos ( $ location , '*' ) !== false ) { $ locations = glob ( $ location ) ; if ( empty ( $ locations ) ) { throw new \ RuntimeException ( sprintf ( 'Failed to run glob on path: %s' , $ location ) ) ; } $ paths = array_merge ( $ paths , $ locations ) ; } elseif ( ! file_exists ( $ location ) ) { throw new \ RuntimeException ( sprintf ( 'The %s contains a non-existent path: %s' , $ this -> path , $ location ) ) ; } else { $ paths [ ] = $ location ; } } return $ paths ; }
docstring: Returns all the third party library paths from the XML file.
  
  @return array
docstring_tokens: Returns all the third party library paths from the XML file .