@@ -312,7 +312,7 @@ public function append(RawCodeCoverageData $rawData, $id = null, bool $append =
312
312
);
313
313
}
314
314
315
- if (empty ($ rawData ->getLineData ())) {
315
+ if (empty ($ rawData ->getLineCoverage ())) {
316
316
return ;
317
317
}
318
318
@@ -339,7 +339,7 @@ public function append(RawCodeCoverageData $rawData, $id = null, bool $append =
339
339
340
340
$ this ->tests [$ id ] = ['size ' => $ size , 'status ' => $ status ];
341
341
342
- foreach ($ rawData ->getLineData () as $ file => $ lines ) {
342
+ foreach ($ rawData ->getLineCoverage () as $ file => $ lines ) {
343
343
if (!$ this ->filter ->isFile ($ file )) {
344
344
continue ;
345
345
}
@@ -526,7 +526,7 @@ private function applyCoversAnnotationFilter(RawCodeCoverageData $rawData, $line
526
526
$ this ->performUnexecutedCoveredCodeCheck ($ rawData , $ linesToBeCovered , $ linesToBeUsed );
527
527
}
528
528
529
- $ rawLineData = $ rawData ->getLineData ();
529
+ $ rawLineData = $ rawData ->getLineCoverage ();
530
530
$ filesWithNoCoverage = \array_diff_key ($ rawLineData , $ linesToBeCovered );
531
531
532
532
foreach (\array_keys ($ filesWithNoCoverage ) as $ fileWithNoCoverage ) {
@@ -542,7 +542,7 @@ private function applyCoversAnnotationFilter(RawCodeCoverageData $rawData, $line
542
542
543
543
private function applyWhitelistFilter (RawCodeCoverageData $ data ): void
544
544
{
545
- foreach (\array_keys ($ data ->getLineData ()) as $ filename ) {
545
+ foreach (\array_keys ($ data ->getLineCoverage ()) as $ filename ) {
546
546
if ($ this ->filter ->isFiltered ($ filename )) {
547
547
$ data ->removeCoverageDataForFile ($ filename );
548
548
}
@@ -554,14 +554,14 @@ private function applyWhitelistFilter(RawCodeCoverageData $data): void
554
554
*/
555
555
private function applyIgnoredLinesFilter (RawCodeCoverageData $ data ): void
556
556
{
557
- foreach (\array_keys ($ data ->getLineData ()) as $ filename ) {
557
+ foreach (\array_keys ($ data ->getLineCoverage ()) as $ filename ) {
558
558
$ data ->removeCoverageDataForLines ($ filename , $ this ->getLinesToBeIgnored ($ filename ));
559
559
}
560
560
}
561
561
562
562
private function initializeFilesThatAreSeenTheFirstTime (RawCodeCoverageData $ data ): void
563
563
{
564
- foreach ($ data ->getLineData () as $ file => $ lines ) {
564
+ foreach ($ data ->getLineCoverage () as $ file => $ lines ) {
565
565
if (!isset ($ this ->data [$ file ]) && $ this ->filter ->isFile ($ file )) {
566
566
$ this ->data [$ file ] = [];
567
567
@@ -802,7 +802,7 @@ private function performUnintentionallyCoveredCodeCheck(RawCodeCoverageData $dat
802
802
803
803
$ unintentionallyCoveredUnits = [];
804
804
805
- foreach ($ data ->getLineData () as $ file => $ _data ) {
805
+ foreach ($ data ->getLineCoverage () as $ file => $ _data ) {
806
806
foreach ($ _data as $ line => $ flag ) {
807
807
if ($ flag === 1 && !isset ($ allowedLines [$ file ][$ line ])) {
808
808
$ unintentionallyCoveredUnits [] = $ this ->wizard ->lookup ($ file , $ line );
@@ -958,7 +958,7 @@ private function initializeData(): void
958
958
959
959
$ data = [];
960
960
961
- foreach ($ this ->driver ->stop ()->getLineData () as $ file => $ fileCoverage ) {
961
+ foreach ($ this ->driver ->stop ()->getLineCoverage () as $ file => $ fileCoverage ) {
962
962
if ($ this ->filter ->isFiltered ($ file )) {
963
963
continue ;
964
964
}
@@ -980,7 +980,7 @@ private function coverageToCodeUnits(RawCodeCoverageData $rawData): array
980
980
{
981
981
$ codeUnits = [];
982
982
983
- foreach ($ rawData ->getLineData () as $ filename => $ lines ) {
983
+ foreach ($ rawData ->getLineCoverage () as $ filename => $ lines ) {
984
984
foreach ($ lines as $ line => $ flag ) {
985
985
if ($ flag === 1 ) {
986
986
$ codeUnits [] = $ this ->wizard ->lookup ($ filename , $ line );
0 commit comments