Conditions | 5 |
Paths | 5 |
Total Lines | 21 |
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['accesstoken'] ) ) { |
||
41 | throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'accesstoken' ) ); |
||
42 | } |
||
43 | |||
44 | if( !isset( $config['appsecret'] ) ) { |
||
45 | throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'appsecret' ) ); |
||
46 | } |
||
47 | |||
48 | $prefix = ( isset( $config['prefix'] ) ? $config['prefix'] : null ); |
||
49 | |||
50 | $client = new Client( $config['accesstoken'], $config['appsecret'] ); |
||
51 | $this->fs = new Filesystem( new DropboxAdapter( $client, $prefix ) ); |
||
52 | } |
||
53 | |||
54 | return $this->fs; |
||
55 | } |
||
57 |
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