Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class SuperCacheServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | public function register() |
||
13 | { |
||
14 | $this->mergeConfigFrom( |
||
15 | __DIR__ . '/../config/supercache.php', |
||
16 | 'supercache' |
||
17 | ); |
||
18 | $this->app->singleton(SuperCacheManager::class, function ($app) { |
||
|
|||
19 | return new SuperCacheManager(new RedisConnector()); |
||
20 | }); |
||
21 | |||
22 | $this->app->singleton('supercache', function ($app) { |
||
23 | return new SuperCacheManager(new RedisConnector()); |
||
24 | }); |
||
25 | } |
||
26 | |||
27 | public function boot() |
||
41 | ]); |
||
42 | } |
||
45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.