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