1 | <?php namespace jlourenco\support; |
||
8 | class supportServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Indicates if loading of the provider is deferred. |
||
13 | * |
||
14 | * @var bool |
||
15 | */ |
||
16 | protected $defer = false; |
||
17 | |||
18 | /** |
||
19 | * Perform post-registration booting of services. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function boot() |
||
30 | |||
31 | /** |
||
32 | * Register any package services. |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function register() |
||
43 | |||
44 | /** |
||
45 | * Prepare the package resources. |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | protected function prepareResources() |
||
56 | |||
57 | /** |
||
58 | * Register the commands. |
||
59 | * |
||
60 | * @return void |
||
61 | */ |
||
62 | protected function registerCommands() |
||
67 | |||
68 | /** |
||
69 | * Register the 'jlourenco:setup' command. |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | protected function registerConfigCommand() |
||
80 | |||
81 | /** |
||
82 | * Register the 'jlourenco:migrate' command. |
||
83 | * |
||
84 | * @return void |
||
85 | */ |
||
86 | protected function registerMigrationCommand() |
||
93 | |||
94 | /** |
||
95 | * Registers this module to the |
||
96 | * services providers and aliases. |
||
97 | * |
||
98 | * @return void |
||
99 | */ |
||
100 | protected function registerToAppConfig() |
||
117 | |||
118 | /** |
||
119 | * Registers setting. |
||
120 | * |
||
121 | * @return void |
||
122 | */ |
||
123 | protected function registerSetting() |
||
142 | |||
143 | /** |
||
144 | * Get the services provided by the provider. |
||
145 | * |
||
146 | * @return array |
||
147 | */ |
||
148 | public function provides() |
||
156 | |||
157 | } |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.