| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function register(Container $pimple) |
||
| 32 | { |
||
| 33 | $capsule = new Manager(); |
||
| 34 | $config = $pimple['settings']['database']; |
||
| 35 | |||
| 36 | $capsule->addConnection([ |
||
| 37 | 'driver' => $config['driver'], |
||
| 38 | 'host' => $config['host'], |
||
| 39 | 'database' => $config['database'], |
||
| 40 | 'username' => $config['username'], |
||
| 41 | 'password' => $config['password'], |
||
| 42 | 'charset' => 'utf8', |
||
| 43 | 'collation' => 'utf8_unicode_ci', |
||
| 44 | 'prefix' => '', |
||
| 45 | ]); |
||
| 46 | |||
| 47 | $capsule->setAsGlobal(); |
||
| 48 | $capsule->bootEloquent(); |
||
| 49 | $pimple['db'] = function ($c) use ($capsule) { |
||
| 50 | return $capsule; |
||
| 51 | }; |
||
| 53 | } |
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