Conditions | 4 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | protected function getProvider() |
||
35 | { |
||
36 | if( !isset( $this->fs ) ) |
||
37 | { |
||
38 | $config = $this->getConfig(); |
||
39 | |||
40 | if( !isset( $config['bucket'] ) ) { |
||
41 | throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'bucket' ) ); |
||
42 | } |
||
43 | |||
44 | if( !isset( $config['region'] ) ) { |
||
45 | $config['region'] = null; |
||
46 | } |
||
47 | |||
48 | $client = S3Client::factory( $config ); |
||
49 | $adapter = new AwsS3V3Adapter( $client, $config['bucket'], $config['prefix'] ?? '' ); |
||
50 | $this->fs = new Filesystem( $adapter ); |
||
51 | } |
||
52 | |||
53 | return $this->fs; |
||
54 | } |
||
56 |
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