| Total Complexity | 1 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class VisitorLog extends Model |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * The attributes that are mass assignable. |
||
| 24 | * |
||
| 25 | * @var list<string> |
||
|
|
|||
| 26 | */ |
||
| 27 | protected $fillable = [ |
||
| 28 | 'viewable_type', |
||
| 29 | 'viewable_id', |
||
| 30 | 'ip_address', |
||
| 31 | 'user_agent', |
||
| 32 | 'expired_at', |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The attributes that should be cast. |
||
| 37 | * |
||
| 38 | * @var array<string, string> |
||
| 39 | */ |
||
| 40 | protected $casts = [ |
||
| 41 | 'expired_at' => 'datetime', |
||
| 42 | ]; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return MorphTo<Model> |
||
| 46 | */ |
||
| 47 | public function viewable(): MorphTo |
||
| 52 |
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