Skip to content

Commit f412a39

Browse files
committed
Cleanup branch calculation code
1 parent 0de6e7d commit f412a39

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Node/File.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -540,21 +540,6 @@ private function calcAndApplyClassAggregate(
540540
$classOrTrait['executedBranches'] += $numExexutedBranches;
541541
$this->numTestedBranches += $numExexutedBranches;
542542
}
543-
544-
// @todo - Are these needed for both path and branches, or just paths?
545-
if ($method['executableLines'] > 0) {
546-
$method['coverage'] = ($method['executedLines'] /
547-
$method['executableLines']) * 100;
548-
} else {
549-
$method['coverage'] = 100;
550-
}
551-
552-
$method['crap'] = $this->crap(
553-
$method['ccn'],
554-
$method['coverage']
555-
);
556-
557-
$classOrTrait['ccn'] += $method['ccn'];
558543
}
559544
}
560545
unset($method);

0 commit comments

Comments
 (0)