Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | public function applyToQuery(Builder $query) |
||
47 | { |
||
48 | $this->query = $query; |
||
49 | |||
50 | foreach ($this->request->all() as $filter => $value) { |
||
51 | $method = Str::camel($filter); |
||
52 | |||
53 | if (method_exists($this, $method)) { |
||
54 | call_user_func([$this, $method], $value); |
||
55 | } |
||
56 | } |
||
57 | |||
58 | return $query; |
||
59 | } |
||
60 | } |
||
61 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.