@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | */ |
| 193 | 193 | protected function setOrder($name, $field, $type = 'ASC') |
| 194 | 194 | { |
| 195 | - $this->getRequest()->getSession()->set('sort.' . $name, array('field' => $field, 'type' => $type)); |
|
| 195 | + $this->getRequest()->getSession()->set('sort.'.$name, array('field' => $field, 'type' => $type)); |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | { |
| 204 | 204 | $session = $this->getRequest()->getSession(); |
| 205 | 205 | |
| 206 | - return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null; |
|
| 206 | + return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null; |
|
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | { |
| 215 | 215 | $alias = current($qb->getDQLPart('from'))->getAlias(); |
| 216 | 216 | if (is_array($order = $this->getOrder($name))) { |
| 217 | - $qb->orderBy($alias . '.' . $order['field'], $order['type']); |
|
| 217 | + $qb->orderBy($alias.'.'.$order['field'], $order['type']); |
|
| 218 | 218 | } |
| 219 | 219 | } |
| 220 | 220 | |
@@ -238,11 +238,11 @@ discard block |
||
| 238 | 238 | $url = $this->generateUrl($route ?: $name, is_null($params) ? array() : $params); |
| 239 | 239 | if (isset($request)) { |
| 240 | 240 | if ($request->query->has('submit-filter') && $form->handleRequest($request)->isValid()) { |
| 241 | - $request->getSession()->set('filter.' . $name, $request->query->get($form->getName())); |
|
| 241 | + $request->getSession()->set('filter.'.$name, $request->query->get($form->getName())); |
|
| 242 | 242 | |
| 243 | 243 | return $this->redirect($url); |
| 244 | 244 | } elseif ($request->query->has('reset-filter')) { |
| 245 | - $request->getSession()->set('filter.' . $name, null); |
|
| 245 | + $request->getSession()->set('filter.'.$name, null); |
|
| 246 | 246 | |
| 247 | 247 | return $this->redirect($url); |
| 248 | 248 | } |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | */ |
| 279 | 279 | protected function getFilter($name) |
| 280 | 280 | { |
| 281 | - return $this->getRequest()->getSession()->get('filter.' . $name); |
|
| 281 | + return $this->getRequest()->getSession()->get('filter.'.$name); |
|
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | /** |