Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | protected function queryFor(string $model, array $args = []): Builder |
||
50 | { |
||
51 | $query = $model::query(); |
||
52 | |||
53 | $query = $this->queryWithLimit($query, $args); |
||
54 | $query = $this->queryWithWhereIn($query, $args); |
||
55 | |||
56 | foreach ($args as $field => $value) { |
||
57 | $query = $query->where($field, $value); |
||
58 | } |
||
59 | |||
60 | return $query; |
||
61 | } |
||
62 | } |