src/Coverage/CoverageMerger.php
private function getCoverageObject(\SplFileObject $coverageFile): CodeCoverage
    {
        if ('<?php' === $coverageFile->fread(5)) {
            return include $coverageFile->getRealPath();
        }

        $coverageFile->fseek(0);
        // the PHPUnit 3.x and below
        return unserialize($coverageFile->fread($coverageFile->getSize()));
    }
private function getCoverageObject(\SplFileObject $coverageFile): CodeCoverage
    {
        if ('<?php' === $coverageFile->fread(5)) {
            return include $coverageFile->getRealPath();
        }

        $coverageFile->fseek(0);
        // the PHPUnit 3.x and below
        return unserialize($coverageFile->fread($coverageFile->getSize()));
    }
private function getCoverageObject ( \ SplFileObject $ coverageFile ) : CodeCoverage { if ( '<?php' === $ coverageFile -> fread ( 5 ) ) { return include $ coverageFile -> getRealPath ( ) ; } $ coverageFile -> fseek ( 0 ) ; // the PHPUnit 3.x and below return unserialize ( $ coverageFile -> fread ( $ coverageFile -> getSize ( ) ) ) ; }
Returns coverage object from file.

@param \SplFileObject $coverageFile coverage file

@return CodeCoverage
Returns coverage object from file .