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