Conditions | 4 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function getProvider() |
||
34 | { |
||
35 | if( !isset( $this->fs ) ) |
||
36 | { |
||
37 | $config = $this->getConfig(); |
||
38 | |||
39 | if( !isset( $config['source'] ) ) { |
||
40 | throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'source' ) ); |
||
41 | } |
||
42 | |||
43 | if( !isset( $config['replica'] ) ) { |
||
44 | throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'replica' ) ); |
||
45 | } |
||
46 | |||
47 | $source = Factory::create( (array) $config['source'] )->getAdapter(); |
||
48 | $replica = Factory::create( (array) $config['replica'] )->getAdapter(); |
||
49 | $this->fs = new Filesystem( new ReplicateAdapter( $source, $replica ) ); |
||
50 | } |
||
51 | |||
52 | return $this->fs; |
||
53 | } |
||
55 |
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