| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function connect() |
||
| 19 | { |
||
| 20 | $params = [ |
||
| 21 | 'path' => $this->config->dbfile, |
||
| 22 | 'user' => $this->config->username, |
||
| 23 | 'password' => $this->config->password, |
||
| 24 | 'driver' => 'pdo_sqlite', |
||
| 25 | 'charset' => 'utf8' |
||
| 26 | ]; |
||
| 27 | |||
| 28 | $config = new Configuration([ |
||
| 29 | \PDO::ATTR_PERSISTENT => true, |
||
| 30 | \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION |
||
| 31 | ]); |
||
| 32 | |||
| 33 | $this->connection = DriverManager::getConnection($params, $config); |
||
| 34 | $this->logger->debug(get_class($this) . " connect."); |
||
| 35 | } |
||
| 37 |
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