We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
11 | class Comment extends Model |
||
12 | { |
||
13 | |||
14 | use SoftDeletes; |
||
15 | |||
16 | /** |
||
17 | * The table associated with the model. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $table = 'comments'; |
||
22 | |||
23 | /** |
||
24 | * Indicates if the IDs are auto-incrementing. |
||
25 | * |
||
26 | * @var bool |
||
27 | */ |
||
28 | public $incrementing = false; |
||
29 | |||
30 | /** |
||
31 | * The attributes that are mass assignable. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $filliable = [ |
||
36 | 'comment_id', |
||
37 | 'id', |
||
38 | 'comment', |
||
39 | 'campaign_id', |
||
40 | 'user_id' |
||
41 | ]; |
||
42 | |||
43 | protected $primaryKey = 'comment_id'; |
||
44 | |||
45 | protected $dates = [ |
||
46 | 'created_at', |
||
47 | 'updated_at' |
||
48 | ]; |
||
49 | |||
50 | protected $hidden = [ |
||
51 | 'created_at', |
||
52 | 'updated_at', |
||
53 | 'user_id', |
||
54 | 'campaign_id' |
||
55 | ]; |
||
56 | |||
57 | // protected $casts = [ 'commentator', 'campaign' ]; |
||
|
|||
58 | |||
59 | public function commentator() |
||
63 | |||
64 | public function campaign() |
||
68 | |||
69 | /** |
||
70 | * Generate automaticaly the Comment id(uuid). |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | public static function boot() |
||
84 | } |
||
85 |
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.