| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class User extends Model |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The attributes that aren't mass assignable. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $guarded = [ |
||
| 16 | 'id', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return HasMany |
||
| 21 | */ |
||
| 22 | public function comments(): HasMany |
||
| 23 | { |
||
| 24 | return $this->hasMany(Comment::class); |
||
|
|
|||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return HasMany |
||
| 29 | */ |
||
| 30 | public function posts(): HasMany |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
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