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