1 | <?php |
||
8 | class RouteServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * This namespace is applied to the controller routes in your routes file. |
||
12 | * |
||
13 | * In addition, it is set as the URL generator's root namespace. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $namespace = 'Colligator\Http\Controllers'; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * Define the routes for the application. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function map() |
||
31 | |||
32 | /** |
||
33 | * Define the "web" routes for the application. |
||
34 | * |
||
35 | * These routes all receive session state, CSRF protection, etc. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | protected function mapWebRoutes() |
||
48 | /** |
||
49 | * Define the "api" routes for the application. |
||
50 | * |
||
51 | * These routes are typically stateless. |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | protected function mapApiRoutes() |
||
65 | } |
||
66 |
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.