original_string: public function readFile(string $file_name)
      {
          $contents = @file_get_contents($file_name);
          if ($contents === false)
              throw new IOException("Failed to read file contents");
  
          $contents = Encoding::removeBOM($contents);
          return $this->readString(file_get_contents($file_name));
      }
code: public function readFile(string $file_name)
      {
          $contents = @file_get_contents($file_name);
          if ($contents === false)
              throw new IOException("Failed to read file contents");
  
          $contents = Encoding::removeBOM($contents);
          return $this->readString(file_get_contents($file_name));
      }
code_tokens: public function readFile ( string $ file_name ) { $ contents = @ file_get_contents ( $ file_name ) ; if ( $ contents === false ) throw new IOException ( "Failed to read file contents" ) ; $ contents = Encoding :: removeBOM ( $ contents ) ; return $ this -> readString ( file_get_contents ( $ file_name ) ) ; }
docstring: Read data from a file
  @param string $file_name The file to read
  @return array The read data
  @throws Wedeto\IO\IOException On read errors
docstring_tokens: Read data from a file