| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function getMaliciousImages(array $files): array |
||
| 26 | { |
||
| 27 | if (! Arr::first($files) instanceof UploadedFile) { |
||
| 28 | $files = collect($files)->flatten()->toArray(); |
||
|
|
|||
| 29 | } |
||
| 30 | |||
| 31 | return array_filter($this->getImages($files), function (UploadedFile $file) { |
||
| 32 | return $this->imageSanitize->detect($file->get()); |
||
| 33 | }); |
||
| 43 |