Skip to content

Commit bf5b28e

Browse files
Simplify
1 parent a7a2a8f commit bf5b28e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CodeCoverage.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,7 @@ private function getLinesToBeIgnoredInner(string $fileName): array
661661

662662
$firstMethod = \array_shift($classOrTrait['methods']);
663663
$firstMethodStartLine = $firstMethod['startLine'];
664-
$firstMethodEndLine = $firstMethod['endLine'];
665-
$lastMethodEndLine = $firstMethodEndLine;
664+
$lastMethodEndLine = $firstMethod['endLine'];
666665

667666
do {
668667
$lastMethod = \array_pop($classOrTrait['methods']);

0 commit comments

Comments
 (0)