Completed
Push — master ( 0c935c...e309b8 )
by Laurent
03:32
created
src/AppBundle/Controller/AbstractController.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -195,6 +195,9 @@
 block discarded – undo
195 195
         }
196 196
     }
197 197
 
198
+    /**
199
+     * @param string $entityName
200
+     */
198 201
     private function testReturnParam($entity, $entityName) {
199 202
         if ($entityName === 'company' || $entityName === 'settings' || $entityName === 'tva') {
200 203
             $param = array('id' => $entity->getId());
Please login to merge, or discard this 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.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,8 @@
 block discarded – undo
195 195
         }
196 196
     }
197 197
 
198
-    private function testReturnParam($entity, $entityName) {
198
+    private function testReturnParam($entity, $entityName)
199
+    {
199 200
         if ($entityName === 'company' || $entityName === 'settings' || $entityName === 'tva') {
200 201
             $param = array('id' => $entity->getId());
201 202
         } else {
Please login to merge, or discard this patch.