From 7eb9b5f1299eef1c9bb70f8c2acd2386564bda13 Mon Sep 17 00:00:00 2001 From: julric689 Date: Wed, 3 Dec 2014 08:14:25 -1000 Subject: [PATCH] Update Crap4j.php modify the line to match the same test as line 106 --- src/CodeCoverage/Report/Crap4j.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }