@@ -183,7 +183,7 @@ public function stop(bool $append = true, TestStatus $status = null, array|false
183183
184184 $ this ->linesToBeIgnored = array_merge_recursive (
185185 $ this ->linesToBeIgnored ,
186- $ linesToBeIgnored
186+ $ linesToBeIgnored,
187187 );
188188
189189 $ this ->append ($ data , null , $ append , $ status , $ linesToBeCovered , $ linesToBeUsed , $ linesToBeIgnored );
@@ -246,7 +246,7 @@ public function append(RawCodeCoverageData $rawData, string $id = null, bool $ap
246246 $ rawData ,
247247 $ linesToBeCovered ,
248248 $ linesToBeUsed ,
249- $ size
249+ $ size,
250250 );
251251
252252 if (empty ($ rawData ->lineCoverage ())) {
@@ -267,7 +267,7 @@ public function append(RawCodeCoverageData $rawData, string $id = null, bool $ap
267267 public function merge (self $ that ): void
268268 {
269269 $ this ->filter ->includeFiles (
270- $ that ->filter ()->files ()
270+ $ that ->filter ()->files (),
271271 );
272272
273273 $ this ->data ->merge ($ that ->data );
@@ -342,7 +342,7 @@ public function cacheDirectory(): string
342342 {
343343 if (!$ this ->cachesStaticAnalysis ()) {
344344 throw new StaticAnalysisCacheNotConfiguredException (
345- 'The static analysis cache is not configured '
345+ 'The static analysis cache is not configured ' ,
346346 );
347347 }
348348
@@ -436,12 +436,12 @@ private function applyExecutableLinesFilter(RawCodeCoverageData $data): void
436436
437437 $ data ->keepLineCoverageDataOnlyForLines (
438438 $ filename ,
439- array_keys ($ linesToBranchMap )
439+ array_keys ($ linesToBranchMap ),
440440 );
441441
442442 $ data ->markExecutableLineByBranch (
443443 $ filename ,
444- $ linesToBranchMap
444+ $ linesToBranchMap,
445445 );
446446 }
447447 }
@@ -459,13 +459,13 @@ private function applyIgnoredLinesFilter(RawCodeCoverageData $data, array $lines
459459 if (isset ($ linesToBeIgnored [$ filename ])) {
460460 $ data ->removeCoverageDataForLines (
461461 $ filename ,
462- $ linesToBeIgnored [$ filename ]
462+ $ linesToBeIgnored [$ filename ],
463463 );
464464 }
465465
466466 $ data ->removeCoverageDataForLines (
467467 $ filename ,
468- $ this ->analyser ()->ignoredLinesFor ($ filename )
468+ $ this ->analyser ()->ignoredLinesFor ($ filename ),
469469 );
470470 }
471471 }
@@ -477,18 +477,18 @@ private function addUncoveredFilesFromFilter(): void
477477 {
478478 $ uncoveredFiles = array_diff (
479479 $ this ->filter ->files (),
480- $ this ->data ->coveredFiles ()
480+ $ this ->data ->coveredFiles (),
481481 );
482482
483483 foreach ($ uncoveredFiles as $ uncoveredFile ) {
484484 if (is_file ($ uncoveredFile )) {
485485 $ this ->append (
486486 RawCodeCoverageData::fromUncoveredFile (
487487 $ uncoveredFile ,
488- $ this ->analyser ()
488+ $ this ->analyser (),
489489 ),
490490 self ::UNCOVERED_FILES ,
491- linesToBeIgnored: $ this ->linesToBeIgnored
491+ linesToBeIgnored: $ this ->linesToBeIgnored ,
492492 );
493493 }
494494 }
@@ -502,7 +502,7 @@ private function performUnintentionallyCoveredCodeCheck(RawCodeCoverageData $dat
502502 {
503503 $ allowedLines = $ this ->getAllowedLines (
504504 $ linesToBeCovered ,
505- $ linesToBeUsed
505+ $ linesToBeUsed,
506506 );
507507
508508 $ unintentionallyCoveredUnits = [];
@@ -519,7 +519,7 @@ private function performUnintentionallyCoveredCodeCheck(RawCodeCoverageData $dat
519519
520520 if (!empty ($ unintentionallyCoveredUnits )) {
521521 throw new UnintentionallyCoveredCodeException (
522- $ unintentionallyCoveredUnits
522+ $ unintentionallyCoveredUnits,
523523 );
524524 }
525525 }
@@ -535,7 +535,7 @@ private function getAllowedLines(array $linesToBeCovered, array $linesToBeUsed):
535535
536536 $ allowedLines [$ file ] = array_merge (
537537 $ allowedLines [$ file ],
538- $ linesToBeCovered [$ file ]
538+ $ linesToBeCovered [$ file ],
539539 );
540540 }
541541
@@ -546,13 +546,13 @@ private function getAllowedLines(array $linesToBeCovered, array $linesToBeUsed):
546546
547547 $ allowedLines [$ file ] = array_merge (
548548 $ allowedLines [$ file ],
549- $ linesToBeUsed [$ file ]
549+ $ linesToBeUsed [$ file ],
550550 );
551551 }
552552
553553 foreach (array_keys ($ allowedLines ) as $ file ) {
554554 $ allowedLines [$ file ] = array_flip (
555- array_unique ($ allowedLines [$ file ])
555+ array_unique ($ allowedLines [$ file ]),
556556 );
557557 }
558558
@@ -592,7 +592,7 @@ private function processUnintentionallyCoveredUnits(array $unintentionallyCovere
592592 throw new ReflectionException (
593593 $ e ->getMessage (),
594594 $ e ->getCode (),
595- $ e
595+ $ e,
596596 );
597597 }
598598
@@ -614,15 +614,15 @@ private function analyser(): FileAnalyser
614614
615615 $ this ->analyser = new ParsingFileAnalyser (
616616 $ this ->useAnnotationsForIgnoringCode ,
617- $ this ->ignoreDeprecatedCode
617+ $ this ->ignoreDeprecatedCode ,
618618 );
619619
620620 if ($ this ->cachesStaticAnalysis ()) {
621621 $ this ->analyser = new CachingFileAnalyser (
622622 $ this ->cacheDirectory ,
623623 $ this ->analyser ,
624624 $ this ->useAnnotationsForIgnoringCode ,
625- $ this ->ignoreDeprecatedCode
625+ $ this ->ignoreDeprecatedCode ,
626626 );
627627 }
628628
0 commit comments