| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function register() |
||
| 22 | { |
||
| 23 | // Add database driver. |
||
| 24 | $this->app->singleton('arangodb.connection', function ($app) { |
||
|
|
|||
| 25 | $config = config('database.connections.arangodb'); |
||
| 26 | return new Connection($config); |
||
| 27 | }); |
||
| 28 | |||
| 29 | IlluminateConnection::resolverFor('arangodb', function ($config) { |
||
| 30 | return app('arangodb.connection'); |
||
| 31 | }); |
||
| 32 | |||
| 33 | $this->app->resolving('db', function ($db) { |
||
| 34 | $db->extend('arangodb', function ($config) { |
||
| 35 | return app('arangodb.connection'); |
||
| 36 | }); |
||
| 37 | }); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.