Skip to content

Commit baf2f53

Browse files
committed
Fix errant assignment to wrong properties
1 parent f412a39 commit baf2f53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Node/File.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,10 @@ private function calculateStatistics(): void
450450
$this->calculatePathsAggregate($functionBranches, $numExecutableBranches, $numExecutedBranches);
451451

452452
$function['executableBranches'] = $numExecutableBranches;
453-
$this->numPaths += $numExecutableBranches;
453+
$this->numBranches += $numExecutableBranches;
454454

455455
$function['executedBranches'] = $numExecutedBranches;
456-
$this->numTestedPaths += $numExecutedBranches;
456+
$this->numTestedBranches += $numExecutedBranches;
457457
}
458458
}
459459
}
@@ -534,7 +534,7 @@ private function calcAndApplyClassAggregate(
534534

535535
$method['executableBranches'] = $numExecutableBranches;
536536
$classOrTrait['executableBranches'] += $numExecutableBranches;
537-
$this->numPaths += $numExecutableBranches;
537+
$this->numBranches += $numExecutableBranches;
538538

539539
$method['executedBranches'] = $numExexutedBranches;
540540
$classOrTrait['executedBranches'] += $numExexutedBranches;

0 commit comments

Comments
 (0)