We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
8 | class RouteServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * This namespace is applied to your controller routes. |
||
12 | * |
||
13 | * In addition, it is set as the URL generator's root namespace. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $namespace = 'DoeSangue\Http\Controllers'; |
||
18 | |||
19 | /** |
||
20 | * Define your route model bindings, pattern filters, etc. |
||
21 | */ |
||
22 | public function boot() |
||
26 | |||
27 | /** |
||
28 | * Define the routes for the application. |
||
29 | */ |
||
30 | public function map() |
||
36 | |||
37 | /** |
||
38 | * Define the "web" routes for the application. |
||
39 | * |
||
40 | * These routes all receive session state, CSRF protection, etc. |
||
41 | */ |
||
42 | /* |
||
43 | protected function mapWebRoutes() |
||
44 | { |
||
45 | Route::group( |
||
46 | [ |
||
47 | 'middleware' => 'web', |
||
48 | 'namespace' => $this->namespace, |
||
49 | ], function ($router) { |
||
50 | include base_path('routes/web.php'); |
||
51 | } |
||
52 | ); |
||
53 | } |
||
54 | */ |
||
55 | |||
56 | /** |
||
57 | * Define the "api" routes for the application. |
||
58 | * |
||
59 | * These routes are typically stateless. |
||
60 | */ |
||
61 | protected function mapApiRoutes() |
||
72 | } |
||
73 |
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.