Conditions | 4 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
13 | public function boot() |
||
14 | { |
||
15 | Storage::extend('b2', function ($app, $config) { |
||
16 | if (!( |
||
17 | isset($config['accountId']) || |
||
18 | isset($config['applicationKey']) || |
||
19 | isset($config['bucketName']))) { |
||
20 | throw new BackblazeB2Exception('Please set all configuration keys. (accountId, applicationKey, bucketName)'); |
||
21 | } |
||
22 | $client = new BackblazeClient($config['accountId'], $config['applicationKey']); |
||
23 | $adapter = new BackblazeAdapter($client, $config['bucketName']); |
||
24 | |||
25 | return new Filesystem($adapter); |
||
26 | }); |
||
33 |
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