@@ 52-60 (lines=9) @@ | ||
49 | { |
|
50 | list($items, $uploaded) = array($request->files(), array()); |
|
51 | ||
52 | foreach ((array) $items as $key => $files) { |
|
53 | $uploaded[$key] = array(); |
|
54 | ||
55 | foreach ((array) $files as $file) { |
|
56 | $item = new UploadedFile($file); |
|
57 | ||
58 | array_push($uploaded[$key], $item); |
|
59 | } |
|
60 | } |
|
61 | ||
62 | return array($request->query()->all(), $uploaded); |
|
63 | } |
@@ 57-65 (lines=9) @@ | ||
54 | ||
55 | $items = $request->getUploadedFiles(); |
|
56 | ||
57 | foreach ((array) $items as $key => $files) { |
|
58 | $uploaded[$key] = array(); |
|
59 | ||
60 | foreach ((array) $files as $file) { |
|
61 | $item = new File($file); |
|
62 | ||
63 | array_push($uploaded[$key], $item); |
|
64 | } |
|
65 | } |
|
66 | ||
67 | return array($request->getQueryParams(), $uploaded); |
|
68 | } |