| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function fileUpload(): bool|FileUploadModel|EloquentCollection |
||
| 20 | { |
||
| 21 | if($this->request->file()) { |
||
| 22 | if (!$this->storeFiles()) { |
||
| 23 | return $this->failedUpload(trans('clamavfileupload::clamav.failed')); |
||
|
|
|||
| 24 | } |
||
| 25 | |||
| 26 | if (is_array($this->request->file($this->input))) { |
||
| 27 | return $this->insertMultipleFiles(); |
||
| 28 | } |
||
| 29 | |||
| 30 | return $this->insertSingleFile(); |
||
| 31 | } |
||
| 32 | |||
| 33 | $this->failedUpload(trans('clamavfileupload::clamav.empty_file_input')); |
||
| 34 | return false; |
||
| 35 | } |
||
| 37 |