| 1 | <?php |
||
| 34 | class UserListItem extends Model |
||
| 35 | { |
||
| 36 | use \Venturecraft\Revisionable\RevisionableTrait; |
||
| 37 | public $timestamps = true; |
||
|
|
|||
| 38 | protected $table = 'user_list_items'; |
||
| 39 | protected $fillable = [ |
||
| 40 | 'content_id', |
||
| 41 | 'content_type', |
||
| 42 | 'user_id', |
||
| 43 | 'list_id', |
||
| 44 | ]; |
||
| 45 | |||
| 46 | protected $guarded = []; |
||
| 47 | |||
| 48 | public function game() |
||
| 52 | |||
| 53 | public function userlist() |
||
| 57 | } |
||
| 58 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.