File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ private function renderSourceWithBranchCoverage(FileNode $node): string
490
490
491
491
if ($ branch ['hit ' ]) {
492
492
$ lineData [$ line ]['includedInHitBranches ' ]++;
493
- $ lineData [$ line ]['tests ' ] = array_merge ($ lineData [$ line ]['tests ' ], $ branch ['hit ' ]);
493
+ $ lineData [$ line ]['tests ' ] = array_unique ( array_merge ($ lineData [$ line ]['tests ' ], $ branch ['hit ' ]) );
494
494
}
495
495
}
496
496
}
@@ -577,7 +577,7 @@ private function renderSourceWithPathCoverage(FileNode $node): string
577
577
578
578
if ($ path ['hit ' ]) {
579
579
$ lineData [$ line ]['includedInHitPaths ' ]++;
580
- $ lineData [$ line ]['tests ' ] = array_merge ($ lineData [$ line ]['tests ' ], $ path ['hit ' ]);
580
+ $ lineData [$ line ]['tests ' ] = array_unique ( array_merge ($ lineData [$ line ]['tests ' ], $ path ['hit ' ]) );
581
581
}
582
582
}
583
583
}
You can’t perform that action at this time.
0 commit comments