Completed
Push — master ( 0c935c...e309b8 )
by Laurent
03:32
created
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     {
228 228
         $session = $this->getRequest()->getSession();
229 229
 
230
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
230
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
231 231
     }
232 232
 
233 233
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     {
241 241
         $alias = current($qbd->getDQLPart('from'))->getAlias();
242 242
         if (is_array($order = $this->getOrder($name))) {
243
-            $qbd->orderBy($alias . '.' . $order['field'], $order['type']);
243
+            $qbd->orderBy($alias.'.'.$order['field'], $order['type']);
244 244
         }
245 245
     }
246 246
 
Please login to merge, or discard this patch.