Conditions | 6 |
Paths | 6 |
Total Lines | 23 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public static function resolve($file) |
||
23 | { |
||
24 | switch(true) { |
||
25 | case is_string($file): |
||
26 | $file = new SymfonyFile($file); |
||
27 | break; |
||
28 | case $file instanceof FileRequest: |
||
|
|||
29 | $file = $file->preprareFile(Container::getInstance()); |
||
30 | break; |
||
31 | case $file instanceof UploadedFile: |
||
32 | $filename = $file->hashName(); |
||
33 | $file = $file->move(config('lincable.temp_directory'), $filename); |
||
34 | break; |
||
35 | case $file instanceof IlluminateFile: |
||
36 | return $file; |
||
37 | break; |
||
38 | case $file instanceof Symfonyfile: |
||
39 | break; |
||
40 | default: |
||
41 | throw new NotResolvableFileException($file); |
||
42 | } |
||
43 | |||
44 | return static::toIlluminateFile($file); |
||
45 | } |
||
57 | } |
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