| Conditions | 2 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 6 | private function parsePath(string $path): array |
|
| 20 | { |
||
| 21 | 6 | return array_map( |
|
| 22 | function (string $key) { |
||
| 23 | 5 | return ctype_digit($key) |
|
| 24 | 2 | ? intval($key) |
|
| 25 | 5 | : $key; |
|
| 26 | 6 | }, |
|
| 27 | 6 | array_values( |
|
| 28 | 6 | array_filter( |
|
| 29 | 6 | str_getcsv( |
|
| 30 | 6 | $path, |
|
| 31 | 6 | DataContainerInterface::SEPARATOR, |
|
| 32 | 6 | DataContainerInterface::ENCLOSURE, |
|
| 33 | 6 | DataContainerInterface::ESCAPE |
|
| 34 | ), |
||
| 35 | 6 | 'strlen' |
|
| 36 | ) |
||
| 41 |