We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
1 | <?php |
||
11 | View Code Duplication | class Invite extends Model |
|
12 | { |
||
13 | use SoftDeletes, UuidTrait; |
||
14 | |||
15 | protected $table = 'invites'; |
||
16 | |||
17 | protected $filliable = [ 'invite_code', 'user_id' ]; |
||
18 | |||
19 | protected $hidden = [ 'user_id', 'created_at', 'updated_at' ]; |
||
20 | |||
21 | protected $dates = [ 'created_at', 'updated_at' ]; |
||
22 | |||
23 | public function user() |
||
27 | } |
||
28 |