Skip to content

Commit 1c504a7

Browse files
Do not count ignored lines.
1 parent 949e65e commit 1c504a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PHP/CodeCoverage/Report/Node/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ protected function calculateStatistics()
397397
$this->processFunctions($tokens);
398398
$this->linesOfCode = $tokens->getLinesOfCode();
399399
unset($tokens);
400-
400+
var_dump($this->linesOfCode);
401401
$max = count(file($this->getPath()));
402-
402+
var_dump($max);
403403
for ($lineNumber = 1; $lineNumber <= $max; $lineNumber++) {
404404
if (isset($this->startLines[$lineNumber])) {
405405
// Start line of a class.

0 commit comments

Comments
 (0)