| Conditions | 2 |
| Paths | 2 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function __construct($db) |
||
| 41 | { |
||
| 42 | parent::__construct(); |
||
| 43 | |||
| 44 | $this->addConnection([ |
||
| 45 | 'driver' => $db->type, |
||
| 46 | 'host' => $db->host, |
||
| 47 | 'database' => $db->name, |
||
| 48 | 'username' => $db->user, |
||
| 49 | 'password' => $db->pass, |
||
| 50 | 'charset' => $db->charset, |
||
| 51 | 'collation' => $db->collation, |
||
| 52 | 'prefix' => $db->prefix, |
||
| 53 | ]); |
||
| 54 | |||
| 55 | $this->setAsGlobal(); |
||
| 56 | $this->bootEloquent(); |
||
| 57 | |||
| 58 | // Obtains Eloquent PDO |
||
| 59 | $pdo = $this->getConnection()->getPdo(); |
||
| 60 | $debugBar = Debug::getDebugBar(); |
||
| 61 | if ($debugBar) { |
||
| 62 | $debugBar->addCollector(new PDOCollector($pdo)); |
||
| 63 | } |
||
| 66 |
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