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