Completed
Pull Request — master (#58)
by Laurent
03:37
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.
src/AppBundle/Controller/GroupController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
     /**
226 226
      * Add roles to form
227 227
      *
228
-     * @param Form  $form  The form in which to insert the roles
228
+     * @param \Symfony\Component\Form\Form  $form  The form in which to insert the roles
229 229
      * @param Group $group The entity to deal
230 230
      * @return Form The form
231 231
      */
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,8 @@
 block discarded – undo
229 229
      * @param Group $group The entity to deal
230 230
      * @return Form The form
231 231
      */
232
-    private function addRoles($form, $group) {
232
+    private function addRoles($form, $group)
233
+    {
233 234
         $form->add('roles', 'choice', array(
234 235
             'choices' => $this->getExistingRoles(),
235 236
             'data' => $group->getRoles(),
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/FamilyLogType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 'entity',
47 47
                 array(
48 48
                     'class' => 'AppBundle:FamilyLog',
49
-                    'query_builder' => function (EntityRepository $er) {
49
+                    'query_builder' => function(EntityRepository $er) {
50 50
                         return $er->createQueryBuilder('f')
51 51
                             ->orderBy('f.path', 'ASC');
52 52
                     },
Please login to merge, or discard this patch.
src/AppBundle/Controller/Settings/Divers/FamilyLogController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
         );
134 134
 
135 135
         return $return;
136
-   }
136
+    }
137 137
 
138 138
     /**
139 139
      * Deletes a FamilyLog entity.
Please login to merge, or discard this patch.
src/AppBundle/Form/Type/SupplierType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 'entity',
47 47
                 array(
48 48
                     'class' => 'AppBundle:FamilyLog',
49
-                    'query_builder' => function (EntityRepository $er) {
49
+                    'query_builder' => function(EntityRepository $er) {
50 50
                         return $er->createQueryBuilder('f')
51 51
                             ->orderBy('f.path', 'ASC');
52 52
                     },
Please login to merge, or discard this patch.
src/AppBundle/Controller/Settings/Divers/TvaController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
         );
134 134
 
135 135
         return $return;
136
-   }
136
+    }
137 137
 
138 138
     /**
139 139
      * Deletes a FamilyLog entity.
Please login to merge, or discard this patch.