| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class User extends Authenticatable |
||
| 11 | { |
||
| 12 | |||
| 13 | use HasApiTokens, Notifiable; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The database table used by the model. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $table = 'user'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The attributes that are mass assignable. |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $fillable = ['username', 'email', 'password', 'confirmation_code']; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The attributes excluded from the model's JSON form. |
||
| 31 | * |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | protected $hidden = ['password', 'remember_token']; |
||
| 35 | |||
| 36 | public function __construct(array $attributes = array()) |
||
| 37 | { |
||
| 38 | $this->table = $this->table; |
||
| 39 | parent::__construct($attributes); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function shop() |
||
| 45 | } |
||
| 46 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths