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 MakeModelCommand extends ModelMakeCommand |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | // protected $signature = 'make:model'; |
||
|
|||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Create a new model class with Models namespace'; |
||
23 | |||
24 | |||
25 | protected function getPath($name) |
||
31 | /** |
||
32 | * Get the root namespace for the class. |
||
33 | * @return string |
||
34 | */ |
||
35 | protected function rootNamespace() |
||
39 | |||
40 | /** |
||
41 | * Create a new command instance. |
||
42 | * |
||
43 | * @return void |
||
44 | * |
||
45 | public function __construct() |
||
46 | { |
||
47 | parent::__construct(); |
||
48 | } |
||
49 | */ |
||
50 | |||
51 | /** |
||
52 | * Execute the console command. |
||
53 | * |
||
54 | * @return mixed |
||
55 | * |
||
56 | public function handle() |
||
57 | { |
||
58 | // |
||
59 | } |
||
60 | */ |
||
61 | } |
||
62 |
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.