| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | trait Relation |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Define a one-to-many relationship with App\Models\User. |
||
| 17 | * |
||
| 18 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 19 | */ |
||
| 20 | public function users(): HasMany |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Return collection of \App\Models\User model relation value. |
||
| 27 | * |
||
| 28 | * @return \Illuminate\Database\Eloquent\Collection<\App\Models\User> |
||
| 29 | */ |
||
| 30 | public function getUsersRelationValue(): Collection |
||
| 31 | { |
||
| 32 | return $this->getCollectionValue('users', User::class); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Set collection of \App\Models\User model relation value. |
||
| 37 | * |
||
| 38 | * @param \Illuminate\Database\Eloquent\Collection<\App\Models\User> $users |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | public function setUsersRelationValue(Collection $users) |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
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