Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
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 | !is_array($value) |
||
54 | ? $result[$fieldName][$key] = $value |
||
55 | : array_walk($value, function ($v, $k) use (&$result, $key) { |
||
56 | $result[$k][$key] = $v; |
||
57 | }); |
||
58 | } |
||
59 | } |
||
60 | return $result; |
||
61 | } |
||
63 |