Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function upload(string $key, UploadedFile $file, bool $overwrite = false) |
||
26 | { |
||
27 | try { |
||
28 | $this->uploadToFlysystem($key, $file); |
||
29 | } catch (RuntimeException $exception) { |
||
30 | if (!$overwrite) { |
||
31 | throw new \RuntimeException(sprintf('The file with key "%s" is exists.', $key)); |
||
32 | } |
||
33 | $this->filesystem->delete($key); |
||
34 | $this->uploadToFlysystem($key, $file); |
||
35 | } |
||
36 | @unlink($file->getPathname()); //remove old |
||
37 | return true; |
||
38 | } |
||
62 |
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