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