Total Complexity | 9 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | class Upload |
||
6 | { |
||
7 | protected $tmpDir; |
||
8 | |||
9 | public function __construct(string $dir) |
||
12 | } |
||
13 | |||
14 | public function process(array $files): array |
||
18 | } |
||
19 | |||
20 | private function addTemp(array $array): array |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * $inputArray => $_FILES |
||
43 | * rebuild Files array |
||
44 | * @param array $inputArray |
||
45 | * @return array |
||
46 | */ |
||
47 | |||
48 | private function buildFilesArray(array $inputArray): array |
||
65 |