src/AbstractReader.php
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);
    }
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);
    }
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 ) ; }
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
Read from a file handle to an open file or resource