| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 33 | 16 | public static function loadWidthsFromCsv($csvPath) |
|
| 34 | { |
||
| 35 | 16 | $fh = fopen($csvPath, 'r'); |
|
| 36 | 16 | $head = fgetcsv($fh); |
|
| 37 | 16 | unset($head[0], $head[1]); |
|
| 38 | 16 | while ($row = fgetcsv($fh)) { |
|
| 39 | 16 | $fontName = array_shift($row); |
|
| 40 | 16 | $fontSize = array_shift($row); |
|
| 41 | 16 | self::$widths[$fontName][$fontSize] = array_combine($head, $row); |
|
| 42 | 16 | } |
|
| 43 | 16 | } |
|
| 44 | |||
| 63 |