Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class Builder |
||
7 | { |
||
8 | /** |
||
9 | * Convert has() and whereHas() constraints to join() ones for BelongsTo and HasOne relations. |
||
10 | * |
||
11 | * @param string|string[] $relationMethod |
||
12 | * @param callable[]|null[] $constraints |
||
13 | * @return $this |
||
14 | * @see \Mpyw\EloquentHasByJoin\HasByJoinMacro |
||
15 | */ |
||
16 | public function hasByJoin($relationMethod, ?callable ...$constraints) |
||
23 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.