Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NonStandard pathCovered for clover lines report #401

Closed
wants to merge 19 commits into from
Closed
Prev Previous commit
Next Next commit
Remove redundant isset && !== null
Maks3w committed Nov 6, 2015
commit c6e5a4b2239c3a2e71022955c70fd12f71797959
2 changes: 1 addition & 1 deletion src/CodeCoverage/Report/Clover.php
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ public function process(PHP_CodeCoverage $coverage, $target = null, $name = null
for ($i = $method['startLine'];
$i <= $method['endLine'];
$i++) {
if (isset($coverage['lines'][$i]) && ($coverage['lines'][$i] !== null)) {
if (isset($coverage['lines'][$i])) {
$methodCount = max($methodCount, count($coverage['lines'][$i]));
}
}