original_string: public function read($filename, $pathToFile = null)
      {
          if(!$this->fileExists($filename, $pathToFile))
              throw new \Exception("File, '{$filename}', does not exist.");
  
          if ($pathToFile==null) {
              return file_get_contents($this->_filePath."/".$filename);
          } else {
              return file_get_contents($pathToFile."/".$filename);
          }
      }
code: public function read($filename, $pathToFile = null)
      {
          if(!$this->fileExists($filename, $pathToFile))
              throw new \Exception("File, '{$filename}', does not exist.");
  
          if ($pathToFile==null) {
              return file_get_contents($this->_filePath."/".$filename);
          } else {
              return file_get_contents($pathToFile."/".$filename);
          }
      }
code_tokens: public function read ( $ filename , $ pathToFile = null ) { if ( ! $ this -> fileExists ( $ filename , $ pathToFile ) ) throw new \ Exception ( "File, '{$filename}', does not exist." ) ; if ( $ pathToFile == null ) { return file_get_contents ( $ this -> _filePath . "/" . $ filename ) ; } else { return file_get_contents ( $ pathToFile . "/" . $ filename ) ; } }
docstring: Read string to file
  
  @param string $filename
  @param string $pathToFile
  @return string
docstring_tokens: Read string to file