Skip to content

Commit c8bb4c0

Browse files
Do not calculate CRAP twice.
1 parent ff61485 commit c8bb4c0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

PHP/CodeCoverage/Report/Clover.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,7 @@ public function process(PHP_CodeCoverage $coverage, $target = NULL, $name = NULL
153153

154154
$lines[$method['startLine']] = array(
155155
'count' => $methodCount,
156-
'crap' => PHP_CodeCoverage_Util::crap(
157-
$method['ccn'],
158-
PHP_CodeCoverage_Util::percent(
159-
$methodLinesCovered,
160-
$methodLines
161-
)
162-
),
156+
'crap' => $method['crap'],
163157
'type' => 'method',
164158
'name' => $methodName
165159
);

0 commit comments

Comments
 (0)