1 | <?php |
||
8 | class MultispacedParser |
||
9 | { |
||
10 | /** |
||
11 | * Splits a line on consecutive spaces (2+) to determine the width of the column and the column header. |
||
12 | * |
||
13 | * The trailing spaces are counted as part of the width of the column, but aren't included in the header. |
||
14 | * |
||
15 | * @param string $line The line of data. |
||
16 | * @return array A map of column header => column width. |
||
17 | */ |
||
18 | public function getMap(string $line) : array |
||
26 | } |
||
27 |