Completed
Push — master ( 4b984d...a3b5f9 )
by Laurent
03:33
created
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $session = $this->getRequest()->getSession();
49 49
 
50
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
50
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
51 51
     }
52 52
 
53 53
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $alias = current($qb->getDQLPart('from'))->getAlias();
62 62
         if (is_array($order = $this->getOrder($name))) {
63
-            $qb->orderBy($alias . '.' . $order['field'], $order['type']);
63
+            $qb->orderBy($alias.'.'.$order['field'], $order['type']);
64 64
         }
65 65
     }
66 66
 
Please login to merge, or discard this patch.