| Conditions | 5 |
| Paths | 5 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 47 | private function buildFilesArray(array $inputArray): array |
||
| 48 | { |
||
| 49 | $result = []; |
||
| 50 | foreach ($inputArray as $fieldName => $file) { |
||
| 51 | foreach ($file as $key => $value) { |
||
| 52 | if (!is_array($value)) { |
||
| 53 | $result[$fieldName][$key] = $value; |
||
| 54 | } else { |
||
| 55 | foreach ($value as $k => $v) { |
||
| 56 | $result[$k][$key] = $v; |
||
| 57 | } |
||
| 58 | } |
||
| 59 | } |
||
| 60 | } |
||
| 61 | return $result; |
||
| 62 | } |
||
| 64 |