| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | protected function registerConnectionServices(): void |
||
| 18 | { |
||
| 19 | $this->app->singleton('db.factory', function ($app) { |
||
| 20 | return new ConnectionFactory($app); |
||
| 21 | }); |
||
| 22 | |||
| 23 | $this->app->singleton('db', function ($app) { |
||
| 24 | return new DatabaseManager($app, $app['db.factory']); |
||
| 25 | }); |
||
| 26 | |||
| 27 | $this->app->bind('db.connection', function ($app) { |
||
| 28 | return $app['db']->connection(); |
||
| 29 | }); |
||
| 30 | |||
| 31 | $this->app->bind('db.schema', function ($app) { |
||
| 32 | return $app['db']->connection()->getSchemaBuilder(); |
||
| 33 | }); |
||
| 34 | |||
| 35 | $this->app->singleton('db.transactions', function ($app) { |
||
|
|
|||
| 36 | return new DatabaseTransactionsManager(); |
||
| 37 | }); |
||
| 40 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.