| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait IsConcatenableRelation |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Set the constraints for an eager load of the deep relation. |
||
| 11 | * |
||
| 12 | * @param \Illuminate\Database\Eloquent\Builder $query |
||
| 13 | * @param array $models |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | 27 | public function addEagerConstraintsToDeepRelationship(Builder $query, array $models): void |
|
| 17 | { |
||
| 18 | 27 | $this->addEagerConstraints($models); |
|
|
|
|||
| 19 | |||
| 20 | 27 | $this->mergeWhereConstraints($query, $this->query); |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Merge the where constraints from another query to the current query. |
||
| 25 | * |
||
| 26 | * @param \Illuminate\Database\Eloquent\Builder $query |
||
| 27 | * @param \Illuminate\Database\Eloquent\Builder $from |
||
| 28 | * @return \Illuminate\Database\Eloquent\Builder |
||
| 29 | */ |
||
| 30 | 61 | public function mergeWhereConstraints(Builder $query, Builder $from): Builder |
|
| 39 | } |
||
| 40 | } |
||
| 41 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.