1 | <?php |
||
24 | class Submodule extends Model |
||
25 | { |
||
26 | use HasSpecialities, HasModules, HasClassrooms, HasCourses, HasManyStudies,Nameable; |
||
27 | /** |
||
28 | * The attributes that are mass assignable. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $fillable = ['name', 'order' , 'total_hours', 'week_hours', 'submodule_id', 'start_date', 'end_date']; |
||
33 | /** |
||
34 | * Get the type os study submodules. |
||
35 | */ |
||
36 | public function type() |
||
40 | |||
41 | public function module() |
||
45 | } |
||
46 |
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.