Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait IsPostgresRelation |
||
10 | { |
||
11 | /** |
||
12 | * Get the wrapped and cast JSON column. |
||
13 | * |
||
14 | * @param \Illuminate\Database\Eloquent\Builder $query |
||
15 | * @param \Illuminate\Database\Eloquent\Model $model |
||
16 | * @param string $column |
||
17 | * @param string $key |
||
18 | * @return \Illuminate\Database\Query\Expression |
||
19 | */ |
||
20 | 20 | protected function jsonColumn(Builder $query, Model $model, $column, $key) |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Get the name of the "where in" method for eager loading. |
||
37 | * |
||
38 | * @param \Illuminate\Database\Eloquent\Model $model |
||
39 | * @param string $key |
||
40 | * @return string |
||
41 | */ |
||
42 | 14 | protected function whereInMethod(Model $model, $key) |
|
47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.