original_string: public function readFileHandle($file_handle)
      {
          if (!is_resource($file_handle))
              throw new \InvalidArgumentException("No file handle was provided");
  
          $contents = stream_get_contents($file_handle);
          $contents = Encoding::removeBOM($contents);
  
          return $this->readString($contents);
      }
code: public function readFileHandle($file_handle)
      {
          if (!is_resource($file_handle))
              throw new \InvalidArgumentException("No file handle was provided");
  
          $contents = stream_get_contents($file_handle);
          $contents = Encoding::removeBOM($contents);
  
          return $this->readString($contents);
      }
code_tokens: public function readFileHandle ( $ file_handle ) { if ( ! is_resource ( $ file_handle ) ) throw new \ InvalidArgumentException ( "No file handle was provided" ) ; $ contents = stream_get_contents ( $ file_handle ) ; $ contents = Encoding :: removeBOM ( $ contents ) ; return $ this -> readString ( $ contents ) ; }
docstring: Read from a file handle to an open file or resource
  @param resource $file_handle The resource to read
  @throws Wedeto\IO\IOException On read errors
docstring_tokens: Read from a file handle to an open file or resource