src/lib/Herrera/Box/Signature.php
private function read($bytes)
    {
        if (false === ($read = @fread($this->handle(), $bytes))) {
            throw FileException::lastError();
        }

        if (($actual = strlen($read)) !== $bytes) {
            throw FileException::create(
                'Only read %d of %d bytes from "%s".',
                $actual,
                $bytes,
                $this->file
            );
        }

        return $read;
    }
private function read($bytes)
    {
        if (false === ($read = @fread($this->handle(), $bytes))) {
            throw FileException::lastError();
        }

        if (($actual = strlen($read)) !== $bytes) {
            throw FileException::create(
                'Only read %d of %d bytes from "%s".',
                $actual,
                $bytes,
                $this->file
            );
        }

        return $read;
    }
private function read ( $ bytes ) { if ( false === ( $ read = @ fread ( $ this -> handle ( ) , $ bytes ) ) ) { throw FileException :: lastError ( ) ; } if ( ( $ actual = strlen ( $ read ) ) !== $ bytes ) { throw FileException :: create ( 'Only read %d of %d bytes from "%s".' , $ actual , $ bytes , $ this -> file ) ; } return $ read ; }
Reads a number of bytes from the file.

@param integer $bytes The number of bytes.

@return string The read bytes.

@throws Exception
@throws FileException If the file could not be read.
Reads a number of bytes from the file .