Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function getLines() |
||
18 | { |
||
19 | while (($line = fgets($this->file)) !== false) { |
||
20 | $matches = []; |
||
21 | if (preg_match("/^(?<filename>[^:]+):(?<lineNo>[0-9]+)\. (?<message>.+)/", $line, $matches)) { |
||
22 | $this->invalidLines |
||
23 | [$matches['filename']] |
||
24 | [$matches['lineNo']] = $matches['message']; |
||
25 | } |
||
26 | } |
||
27 | |||
28 | return $this->invalidLines; |
||
29 | } |
||
30 | |||
59 |