Skip to content

Commit 235c50c

Browse files
committed
Remove useless loop
1 parent d71bb6b commit 235c50c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/CodeCoverage.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ private function initializeFilesThatAreSeenTheFirstTime(array $data)
634634

635635
foreach ($fileData['functions'] as $functionName => $functionData) {
636636
$this->data[$file]['branches'][$functionName] = [];
637-
$this->data[$file]['paths'][$functionName] = [];
637+
$this->data[$file]['paths'][$functionName] = $functionData['paths'];
638638

639639
foreach ($functionData['branches'] as $index => $branch) {
640640
$this->data[$file]['branches'][$functionName][$index] = [
@@ -650,10 +650,6 @@ private function initializeFilesThatAreSeenTheFirstTime(array $data)
650650
}
651651
}
652652
}
653-
654-
foreach ($functionData['paths'] as $path) {
655-
$this->data[$file]['paths'][$functionName][] = $path;
656-
}
657653
}
658654
}
659655
}

0 commit comments

Comments
 (0)