We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | trait HasUploadedFiles |
||
8 | { |
||
9 | protected function getUploadedFile(string $fileName, string $mime = 'image/jpg') |
||
10 | { |
||
11 | return new UploadedFile(__DIR__.'/assets/'.$fileName, $fileName, $mime, null, true); |
||
12 | } |
||
13 | |||
14 | protected function getUploadedFiles(array $fileNames, string $mime = 'image/jpg') |
||
15 | { |
||
16 | return array_map(function ($fileName) use ($mime) { |
||
17 | return new UploadedFile(__DIR__.'/assets/'.$fileName, $fileName, $mime, null, true); |
||
18 | }, $fileNames); |
||
19 | } |
||
20 | |||
21 | protected function getBase64Image() |
||
24 | } |
||
25 | } |
||
26 |