Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class UploadOption |
||
11 | { |
||
12 | /** |
||
13 | * The file that will be uploaded to storage disk |
||
14 | */ |
||
15 | public SplFileInfo $file; |
||
16 | |||
17 | /** |
||
18 | * Desired path to store the file |
||
19 | * |
||
20 | * @example user/$user->id/avatar/ |
||
21 | */ |
||
22 | public string $storePath = ''; |
||
23 | |||
24 | /** |
||
25 | * New filename after uploaded |
||
26 | * |
||
27 | * By default, auto generate by Ready |
||
28 | */ |
||
29 | public ?string $newFileName = null; |
||
30 | |||
31 | /** |
||
32 | * Source model of the File |
||
33 | */ |
||
34 | public ?Model $source = null; |
||
35 | |||
36 | public static function prepareFromUploadedFile(UploadedFile $uploadedFile): self |
||
42 | } |
||
43 | |||
44 | public static function prepareFromPath(string $filePath): self |
||
56 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths