public function getCoveredLines(): array
    {
        $this->getDiff();

        $coveredFiles = $this->fileChecker->parseLines();
        $this->uncoveredLines = [];
        $this->coveredLines = [];

        $diffFiles = array_keys($this->cache->diff);
        foreach ($diffFiles as $file) {
            $matchedFile = $this->findFile($file, $coveredFiles);
            if ($matchedFile !== '') {
                $this->matchLines($file, $matchedFile);
            }
        }

        return [
            'uncoveredLines' => $this->uncoveredLines,
            'coveredLines' => $this->coveredLines,
        ];
    }
public function getCoveredLines(): array
    {
        $this->getDiff();

        $coveredFiles = $this->fileChecker->parseLines();
        $this->uncoveredLines = [];
        $this->coveredLines = [];

        $diffFiles = array_keys($this->cache->diff);
        foreach ($diffFiles as $file) {
            $matchedFile = $this->findFile($file, $coveredFiles);
            if ($matchedFile !== '') {
                $this->matchLines($file, $matchedFile);
            }
        }

        return [
            'uncoveredLines' => $this->uncoveredLines,
            'coveredLines' => $this->coveredLines,
        ];
    }
public function getCoveredLines ( ) : array { $ this -> getDiff ( ) ; $ coveredFiles = $ this -> fileChecker -> parseLines ( ) ; $ this -> uncoveredLines = [ ] ; $ this -> coveredLines = [ ] ; $ diffFiles = array_keys ( $ this -> cache -> diff ) ; foreach ( $ diffFiles as $ file ) { $ matchedFile = $ this -> findFile ( $ file , $ coveredFiles ) ; if ( $ matchedFile !== '' ) { $ this -> matchLines ( $ file , $ matchedFile ) ; } } return [ 'uncoveredLines' => $ this -> uncoveredLines , 'coveredLines' => $ this -> coveredLines , ] ; }
array of uncoveredLines and coveredLines
array of uncoveredLines and coveredLines