| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 19 | public function register() |
||
| 20 | { |
||
| 21 | $this->app->singleton('db.connection.virtual', function ($app, $parameters) { |
||
| 22 | list($connection, $database, $prefix, $config) = $parameters; |
||
| 23 | return new MysqlVirtualConnection($connection, $database, $prefix, $config); |
||
| 24 | }); |
||
| 25 | |||
| 26 | $this->app->singleton('db.connector.virtual', function ($app, $parameters) { |
||
| 27 | return new MySqlConnector(); |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.