1 | <?php |
||
17 | class Category extends Model |
||
18 | { |
||
19 | protected $table = 'category'; |
||
20 | public $timestamps = true; |
||
21 | |||
22 | protected $fillable = [ |
||
23 | 'id', |
||
24 | 'name', |
||
25 | 'gender', |
||
26 | 'isTeam', |
||
27 | 'ageCategory', |
||
28 | 'ageMin', |
||
29 | 'ageMax', |
||
30 | 'gradeCategory', |
||
31 | 'gradeMin', |
||
32 | 'gradeMax', |
||
33 | ]; |
||
34 | |||
35 | |||
36 | public function getNameAttribute($name) |
||
41 | |||
42 | public function getGradeAttribute($grade) |
||
46 | |||
47 | public function getAgeCategoryAttribute($ageCategory) |
||
51 | |||
52 | public function tournaments() |
||
56 | |||
57 | // public function settings() |
||
|
|||
58 | // { |
||
59 | // return $this->hasOne(ChampionshipSettings::class); |
||
60 | // } |
||
61 | public function championship() |
||
65 | |||
66 | public function isTeam() |
||
70 | |||
71 | public function isForMen() |
||
75 | |||
76 | public function isForWomen() |
||
80 | |||
81 | public function isMixt() |
||
85 | } |
||
86 |
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.