original_string: protected function loadFile($path)
      {
          if (pathinfo($path, PATHINFO_EXTENSION) !== 'php') {
              throw new \InvalidArgumentException('Can only parse files with ".php" extensions');
          }
          if (!file_exists($path)) {
              throw new \InvalidArgumentException(sprintf('Failed to find \'%s\' file.', $path));
          }
  
          return file_get_contents($path);
      }
code: protected function loadFile($path)
      {
          if (pathinfo($path, PATHINFO_EXTENSION) !== 'php') {
              throw new \InvalidArgumentException('Can only parse files with ".php" extensions');
          }
          if (!file_exists($path)) {
              throw new \InvalidArgumentException(sprintf('Failed to find \'%s\' file.', $path));
          }
  
          return file_get_contents($path);
      }
code_tokens: protected function loadFile ( $ path ) { if ( pathinfo ( $ path , PATHINFO_EXTENSION ) !== 'php' ) { throw new \ InvalidArgumentException ( 'Can only parse files with ".php" extensions' ) ; } if ( ! file_exists ( $ path ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Failed to find \'%s\' file.' , $ path ) ) ; } return file_get_contents ( $ path ) ; }
docstring: Loads the contents of a file.
  
  @param string $path File path
  
  @return string
docstring_tokens: Loads the contents of a file .