Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 3 | public function getListQuery(array $sortConfiguration, $sortQuery) |
|
19 | { |
||
20 | 3 | $query = $this->getBaseQuery(); |
|
21 | 3 | $sorts = $this->prepareRequestSort($sortConfiguration, $sortQuery); |
|
22 | 3 | foreach ($sorts as $sort) { |
|
23 | 3 | $query->addOrderBy($sort['column'], $sort['order']); |
|
24 | } |
||
25 | |||
26 | 3 | return $query; |
|
27 | } |
||
28 | |||
55 |