Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 7 |
Ratio | 46.67 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function register() |
||
29 | { |
||
30 | $app = $this->app; |
||
31 | |||
32 | $app->singleton('elasticsearch.factory', function ($app) { |
||
|
|||
33 | return new Factory(); |
||
34 | }); |
||
35 | |||
36 | $app->singleton('elasticsearch', function ($app) { |
||
37 | return new LumenManager($app, $app['elasticsearch.factory']); |
||
38 | }); |
||
39 | } |
||
40 | } |
||
41 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.