@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | protected function setOrder($name, $field, $type = 'ASC') |
173 | 173 | { |
174 | - $this->getRequest()->getSession()->set('sort.' . $name, array('field' => $field, 'type' => $type)); |
|
174 | + $this->getRequest()->getSession()->set('sort.'.$name, array('field' => $field, 'type' => $type)); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | { |
183 | 183 | $session = $this->getRequest()->getSession(); |
184 | 184 | |
185 | - return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null; |
|
185 | + return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | { |
194 | 194 | $alias = current($qb->getDQLPart('from'))->getAlias(); |
195 | 195 | if (is_array($order = $this->getOrder($name))) { |
196 | - $qb->orderBy($alias . '.' . $order['field'], $order['type']); |
|
196 | + $qb->orderBy($alias.'.'.$order['field'], $order['type']); |
|
197 | 197 | } |
198 | 198 | } |
199 | 199 |