@@ -80,6 +80,9 @@ discard block |
||
| 80 | 80 | return $currentFile; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $line |
|
| 85 | + */ |
|
| 83 | 86 | protected function getLineNumber($line) |
| 84 | 87 | { |
| 85 | 88 | $matches = []; |
@@ -90,6 +93,9 @@ discard block |
||
| 90 | 93 | return $matches['lineNumber']; |
| 91 | 94 | } |
| 92 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $line |
|
| 98 | + */ |
|
| 93 | 99 | protected function getMessage($line) |
| 94 | 100 | { |
| 95 | 101 | return trim(preg_replace($this->lineRegex, "", $line)); |
@@ -82,12 +82,12 @@ |
||
| 82 | 82 | |
| 83 | 83 | protected function getLineNumber($line) |
| 84 | 84 | { |
| 85 | - $matches = []; |
|
| 86 | - if (!preg_match('' . $this->lineRegex, $line, $matches)) { |
|
| 87 | - return false; |
|
| 88 | - } |
|
| 85 | + $matches = []; |
|
| 86 | + if (!preg_match('' . $this->lineRegex, $line, $matches)) { |
|
| 87 | + return false; |
|
| 88 | + } |
|
| 89 | 89 | |
| 90 | - return $matches['lineNumber']; |
|
| 90 | + return $matches['lineNumber']; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | protected function getMessage($line) |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | protected function checkForFilename($line, $currentFile) |
| 76 | 76 | { |
| 77 | 77 | if (strpos($line, " Line ")) { |
| 78 | - return trim(str_replace('Line', '',$line)); |
|
| 78 | + return trim(str_replace('Line', '', $line)); |
|
| 79 | 79 | } |
| 80 | 80 | return $currentFile; |
| 81 | 81 | } |