@@ -82,16 +82,16 @@ |
||
| 82 | 82 | |
| 83 | 83 | protected function getLineNumber($line, $currentLineNumber) |
| 84 | 84 | { |
| 85 | - $matches = []; |
|
| 86 | - if (!preg_match($this->lineRegex, $line, $matches)) { |
|
| 87 | - if (preg_match('#^\s{3,}#', $line)) { |
|
| 85 | + $matches = []; |
|
| 86 | + if (!preg_match($this->lineRegex, $line, $matches)) { |
|
| 87 | + if (preg_match('#^\s{3,}#', $line)) { |
|
| 88 | 88 | return $currentLineNumber; |
| 89 | - } |
|
| 89 | + } |
|
| 90 | 90 | |
| 91 | - return false; |
|
| 92 | - } |
|
| 91 | + return false; |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | - return $matches['lineNumber']; |
|
| 94 | + return $matches['lineNumber']; |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | protected function getMessage($line) |