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