original_string: public function filePath($path)
      {
          $file = $this->realPath($path);
          if (!is_file($file)) {
              throw new \InvalidArgumentException(sprintf('The path is not a file: %s', $file));
          }
  
          return $path;
      }
code: public function filePath($path)
      {
          $file = $this->realPath($path);
          if (!is_file($file)) {
              throw new \InvalidArgumentException(sprintf('The path is not a file: %s', $file));
          }
  
          return $path;
      }
code_tokens: public function filePath ( $ path ) { $ file = $ this -> realPath ( $ path ) ; if ( ! is_file ( $ file ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The path is not a file: %s' , $ file ) ) ; } return $ path ; }
docstring: Validate a file path.
  
  @param string $path
  
  @return string
docstring_tokens: Validate a file path .