Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 5 | public static function loadWidthsFromCsv($csvPath) |
|
34 | { |
||
35 | 5 | foreach (file($csvPath) as $line) { |
|
36 | 5 | $widths = explode(',', trim($line)); |
|
37 | 5 | if (count(range(33, 126)) + 2 == count($widths)) { |
|
38 | 5 | self::$widths[array_shift($widths)][array_shift($widths)] = |
|
39 | 5 | array_combine(array_map('chr', range(33, 126)), $widths); |
|
40 | 5 | } |
|
41 | 5 | } |
|
42 | 5 | } |
|
43 | |||
60 |