Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
56 | private function doSerializeSortKeys( $query ) { |
||
57 | |||
58 | $sort = array(); |
||
59 | $order = array(); |
||
60 | |||
61 | if ( $query->getSortKeys() === null ) { |
||
62 | return array( $sort, $order ); |
||
63 | } |
||
64 | |||
65 | foreach ( $query->getSortKeys() as $key => $value ) { |
||
66 | $sort[] = $key; |
||
67 | $order[] = strtolower( $value ); |
||
68 | } |
||
69 | |||
70 | return array( $sort, $order ); |
||
71 | } |
||
72 | |||
74 |