Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public static function connect(array $connectionParams){ |
||
15 | |||
16 | if(self::$database == null) |
||
17 | { |
||
18 | $connection = \Doctrine\DBAL\DriverManager::getConnection($connectionParams); |
||
19 | self::$database = new Database($connection); |
||
20 | self::$database->setManagers(new TableManager(self::$database),new RecordManager(self::$database),new ModelManager(self::$database)); |
||
21 | return self::$database; |
||
22 | } |
||
23 | |||
24 | return self::$database; |
||
25 | } |
||
26 | } |
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