diff --git a/src/CodeCoverage/Report/Crap4j.php b/src/CodeCoverage/Report/Crap4j.php index a66adc16b..9a279b2a7 100644 --- a/src/CodeCoverage/Report/Crap4j.php +++ b/src/CodeCoverage/Report/Crap4j.php @@ -148,7 +148,7 @@ public function process(PHP_CodeCoverage $coverage, $target = null, $name = null private function getCrapLoad($crapValue, $cyclomaticComplexity, $coveragePercent) { $crapLoad = 0; - if ($crapValue > $this->threshold) { + if ($crapValue >= $this->threshold) { $crapLoad += $cyclomaticComplexity * (1.0 - $coveragePercent / 100); $crapLoad += $cyclomaticComplexity / $this->threshold; }