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
490490
491491 if ($ branch ['hit ' ]) {
492492 $ 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 ' ]) );
494494 }
495495 }
496496 }
@@ -577,7 +577,7 @@ private function renderSourceWithPathCoverage(FileNode $node): string
577577
578578 if ($ path ['hit ' ]) {
579579 $ 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 ' ]) );
581581 }
582582 }
583583 }
You can’t perform that action at this time.
0 commit comments