Total Complexity | 1 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 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 | * Get the parent viewable model. |
||
46 | * |
||
47 | * @phpstan-return \Illuminate\Database\Eloquent\Relations\MorphTo<\Illuminate\Database\Eloquent\Model, \CSlant\Blog\Api\Models\VisitorLog> |
||
48 | */ |
||
49 | public function viewable(): MorphTo |
||
57 |
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