Total Complexity | 5 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class AmazonGiftCodeServiceProvider extends ServiceProvider |
||
15 | { |
||
16 | /** |
||
17 | * Perform post-registration booting of services. |
||
18 | * |
||
19 | * @return void |
||
20 | */ |
||
21 | public function boot() |
||
22 | { |
||
23 | // Publishing is only necessary when using the CLI. |
||
24 | if ($this->app->runningInConsole()) { |
||
25 | $this->bootForConsole(); |
||
26 | } |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Register any package services. |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function register() |
||
41 | }); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Get the services provided by the provider. |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | public function provides() |
||
50 | { |
||
51 | return ['amazongiftcode']; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Console-specific booting. |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | protected function bootForConsole() |
||
65 | |||
66 | } |
||
67 | } |
||
68 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.