src/Reporter/Coverage/Collector.php
public function export($file = null)
    {
        if ($file) {
            return isset($this->_coverage[$file]) ? $this->_coverage($file, $this->_coverage[$file]) : [];
        }
        $result = [];
        $base = preg_quote($this->base(), '~');
        foreach ($this->_coverage as $file => $rawCoverage) {
            if ($coverage = $this->_coverage($file, $rawCoverage)) {
                $result[preg_replace("~^{$base}~", '', $file)] = $coverage;
            }
        }
        return $result;
    }
public function export($file = null)
    {
        if ($file) {
            return isset($this->_coverage[$file]) ? $this->_coverage($file, $this->_coverage[$file]) : [];
        }
        $result = [];
        $base = preg_quote($this->base(), '~');
        foreach ($this->_coverage as $file => $rawCoverage) {
            if ($coverage = $this->_coverage($file, $rawCoverage)) {
                $result[preg_replace("~^{$base}~", '', $file)] = $coverage;
            }
        }
        return $result;
    }
public function export ( $ file = null ) { if ( $ file ) { return isset ( $ this -> _coverage [ $ file ] ) ? $ this -> _coverage ( $ file , $ this -> _coverage [ $ file ] ) : [ ] ; } $ result = [ ] ; $ base = preg_quote ( $ this -> base ( ) , '~' ) ; foreach ( $ this -> _coverage as $ file => $ rawCoverage ) { if ( $ coverage = $ this -> _coverage ( $ file , $ rawCoverage ) ) { $ result [ preg_replace ( "~^{$base}~" , '' , $ file ) ] = $ coverage ; } } return $ result ; }
Exports coverage data.

@return array The coverage data.
Exports coverage data .