Conditions | 3 |
Paths | 5 |
Total Lines | 23 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public static function get(array $setting) |
||
32 | { |
||
33 | $instance = null; |
||
34 | |||
35 | if (empty($setting['directory_path'])) { |
||
36 | return $instance; |
||
37 | } |
||
38 | |||
39 | try { |
||
40 | // Specify the sqlite file location. |
||
41 | $sqliteLocation = $setting['directory_path'] . '/shieldon.sqlite3'; |
||
42 | $pdoInstance = new PDO('sqlite:' . $sqliteLocation); |
||
43 | $instance = new SqliteDriver($pdoInstance); |
||
44 | |||
45 | // @codeCoverageIgnoreStart |
||
46 | |||
47 | } catch(PDOException $e) { |
||
48 | echo $e->getMessage(); |
||
49 | } |
||
50 | |||
51 | // @codeCoverageIgnoreEnd |
||
52 | |||
53 | return $instance; |
||
54 | } |
||
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