Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function getProvider() |
||
37 | { |
||
38 | if( !isset( $this->fs ) ) |
||
39 | { |
||
40 | $config = $this->getConfig(); |
||
41 | |||
42 | if( !isset( $config['root'] ) ) { |
||
43 | throw new Exception( sprintf( 'Configuration option "%1$s" missing', 'root' ) ); |
||
44 | } |
||
45 | |||
46 | $conn = DriverManager::getConnection( $config ); |
||
47 | $factory = new RepositoryFactoryDoctrineDBAL(); |
||
48 | |||
49 | $repo = $factory->getRepository( array( 'jackalope.doctrine_dbal_connection' => $conn ) ); |
||
50 | $session = $repo->login( new \PHPCR\SimpleCredentials( null, null ) ); |
||
51 | |||
52 | $this->fs = new Filesystem( new PhpcrAdapter( $session, $config['root'] ) ); |
||
53 | } |
||
54 | |||
55 | return $this->fs; |
||
56 | } |
||
58 |
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