| Total Complexity | 1 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class PostView extends Model |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * The attributes that are mass assignable. |
||
| 24 | * |
||
| 25 | * @var list<string> |
||
|
|
|||
| 26 | */ |
||
| 27 | protected $fillable = [ |
||
| 28 | 'post_id', |
||
| 29 | 'ip_address', |
||
| 30 | 'user_agent', |
||
| 31 | 'time_check', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * The attributes that should be cast. |
||
| 36 | * |
||
| 37 | * @var array<string, string> |
||
| 38 | */ |
||
| 39 | protected $casts = [ |
||
| 40 | 'time_check' => 'datetime', |
||
| 41 | ]; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the post associated with this view. |
||
| 45 | * |
||
| 46 | * @phpstan-return \Illuminate\Database\Eloquent\Relations\BelongsTo<\Illuminate\Database\Eloquent\Model, \CSlant\Blog\Api\Models\PostView> |
||
| 47 | */ |
||
| 48 | public function post(): BelongsTo |
||
| 59 |
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