Completed
Push — master ( cfc87e...ecfb42 )
by Laurent
03:10
created
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $form = $this->createForm($typePath, $entityNew, array(
142 142
             'action' => $this->generateUrl(strtolower($entity).'_create'),
143 143
         ));
144
-        $return = [$entity => $entityNew, 'form' => $form->createView(),];
144
+        $return = [$entity => $entityNew, 'form' => $form->createView(), ];
145 145
 
146 146
         if ($form->handleRequest($request)->isValid()) {
147 147
             $etm = $this->getDoctrine()->getManager();
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     {
268 268
         $session = new Session();
269 269
 
270
-        return $session->has('sort.' . $name) ? $session->get('sort.' . $name) : null;
270
+        return $session->has('sort.'.$name) ? $session->get('sort.'.$name) : null;
271 271
     }
272 272
 
273 273
     /**
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
             } else {
292 292
                 $alias = current($qbd->getDQLPart('from'))->getAlias();
293 293
             }
294
-            $qbd->orderBy($alias . '.' . $order['field'], $order['type']);
294
+            $qbd->orderBy($alias.'.'.$order['field'], $order['type']);
295 295
         }
296 296
     }
297 297
 
Please login to merge, or discard this patch.
src/AppBundle/Controller/UserController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     {
101 101
         $user = new User();
102 102
         $form = $this->createForm(UserType::class, $user);
103
-        $return = ['user' => $user, 'form'   => $form->createView(),];
103
+        $return = ['user' => $user, 'form'   => $form->createView(), ];
104 104
 
105 105
         if ($form->handleRequest($request)->isValid()) {
106 106
             $group = $this->getDoctrine()->getManager()->getRepository('AppBundle:Group')->findBy(array('id' => $user->getGroup()));
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
         $return = ['user' => $user,
167 167
             'edit_form' => $editForm->createView(),
168
-            'delete_form' => $deleteForm->createView(),];
168
+            'delete_form' => $deleteForm->createView(), ];
169 169
 
170 170
         if ($editForm->handleRequest($request)->isValid()) {
171 171
             $userManager = $this->get('fos_user.user_manager');
Please login to merge, or discard this patch.
src/AppBundle/Controller/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $group = new Group();
102 102
         $form = $this->createForm(GroupType::class, $group);
103 103
         $this->addRoles($form, $group);
104
-        $return = ['group' => $group, 'form' => $form->createView(),];
104
+        $return = ['group' => $group, 'form' => $form->createView(), ];
105 105
 
106 106
         if ($form->handleRequest($request)->isValid()) {
107 107
             $etm = $this->getDoctrine()->getManager();
Please login to merge, or discard this patch.