@@ -470,6 +470,7 @@ private function renderSourceWithBranchCoverage(FileNode $node): string
470470
471471 $ lineData = [];
472472
473+ /** @var int $line */
473474 foreach (array_keys ($ codeLines ) as $ line ) {
474475 $ lineData [$ line + 1 ] = [
475476 'includedInBranches ' => 0 ,
@@ -498,6 +499,7 @@ private function renderSourceWithBranchCoverage(FileNode $node): string
498499 $ lines = '' ;
499500 $ i = 1 ;
500501
502+ /** @var string $line */
501503 foreach ($ codeLines as $ line ) {
502504 $ trClass = '' ;
503505 $ popover = '' ;
@@ -555,6 +557,7 @@ private function renderSourceWithPathCoverage(FileNode $node): string
555557
556558 $ lineData = [];
557559
560+ /** @var int $line */
558561 foreach (array_keys ($ codeLines ) as $ line ) {
559562 $ lineData [$ line + 1 ] = [
560563 'includedInPaths ' => 0 ,
@@ -584,6 +587,7 @@ private function renderSourceWithPathCoverage(FileNode $node): string
584587 $ lines = '' ;
585588 $ i = 1 ;
586589
590+ /** @var string $line */
587591 foreach ($ codeLines as $ line ) {
588592 $ trClass = '' ;
589593 $ popover = '' ;
@@ -668,6 +672,7 @@ private function renderBranchLines(array $branch, array $codeLines, array $testD
668672 $ branchLines = range ($ branch ['line_start ' ], $ branch ['line_end ' ]);
669673 sort ($ branchLines ); // sometimes end_line < start_line
670674
675+ /** @var int $line */
671676 foreach ($ branchLines as $ line ) {
672677 if (!isset ($ codeLines [$ line ])) { // blank line at end of file is sometimes included here
673678 continue ;
@@ -765,6 +770,7 @@ private function renderPathLines(array $path, array $branches, array $codeLines,
765770 $ branchLines = range ($ branches [$ branchId ]['line_start ' ], $ branches [$ branchId ]['line_end ' ]);
766771 sort ($ branchLines ); // sometimes end_line < start_line
767772
773+ /** @var int $line */
768774 foreach ($ branchLines as $ line ) {
769775 if (!isset ($ codeLines [$ line ])) { // blank line at end of file is sometimes included here
770776 continue ;
0 commit comments