Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function getRows() : array |
||
36 | { |
||
37 | $headers = (new MultispacedParser())->getMap($this->headerLine); |
||
38 | $lineParser = new StrictColumnWidthsParser(array_values($headers)); |
||
39 | |||
40 | $rows = []; |
||
41 | foreach ($this->lines as $line) { |
||
42 | $rows[] = array_combine(array_keys($headers), $lineParser->getColumns($line)); |
||
43 | } |
||
44 | |||
45 | return $rows; |
||
46 | } |
||
47 | |||
53 |