| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function boot() |
||
| 24 | { |
||
| 25 | if ($this->app instanceof LumenApplication) { |
||
| 26 | $this->app->configure('filesystems'); |
||
| 27 | } |
||
| 28 | |||
| 29 | $this->app->make('filesystem') |
||
| 30 | ->extend('cosv4', function ($app, $config) { |
||
| 31 | $cosApi = new Api($config); |
||
| 32 | $flysystem = new Filesystem(new Adapter($cosApi, $config)); |
||
| 33 | |||
| 34 | $flysystem->addPlugin(new PutRemoteFile()); |
||
| 35 | $flysystem->addPlugin(new PutRemoteFileAs()); |
||
| 36 | $flysystem->addPlugin(new GetUrl()); |
||
| 37 | |||
| 38 | return $flysystem; |
||
| 39 | }); |
||
| 54 |
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