Completed
Push — master ( c625e6...cb69ef )
by Laurent
03:18
created
src/AppBundle/Controller/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         $form = $this->createForm(GroupType::class, $group);
101 101
         AbstractController::addRolesAction($form, $group);
102 102
         $form->handleRequest($request);
103
-        $return = ['group' => $group, 'form' => $form->createView(),];
103
+        $return = ['group' => $group, 'form' => $form->createView(), ];
104 104
 
105 105
         if ($form->isValid()) {
106 106
             $etm = $this->getDoctrine()->getManager();
Please login to merge, or discard this patch.
src/AppBundle/Controller/AbstractController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             $this->addRolesAction($form, $entityNew);
154 154
         }
155 155
         $form->handleRequest($request);
156
-        $return = [$entity => $entityNew, 'form' => $form->createView(),];
156
+        $return = [$entity => $entityNew, 'form' => $form->createView(), ];
157 157
 
158 158
         if ($form->isValid()) {
159 159
             $etm = $this->getDoctrine()->getManager();
@@ -262,9 +262,9 @@  discard block
 block discarded – undo
262 262
     public function abstractDeleteWithArticlesAction($entity, Request $request, $entityName)
263 263
     {
264 264
         $etm = $this->getDoctrine()->getManager();
265
-        $form = $this->createDeleteForm($entity->getId(), $entityName . '_delete');
265
+        $form = $this->createDeleteForm($entity->getId(), $entityName.'_delete');
266 266
         $entityArticles = $etm
267
-            ->getRepository('AppBundle:' .  ucfirst($entityName) . 'Articles')
267
+            ->getRepository('AppBundle:'.ucfirst($entityName).'Articles')
268 268
             ->findBy([$entityName => $entity->getId()]);
269 269
 
270 270
         if ($form->handleRequest($request)->isValid()) {
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             } else {
300 300
                 $alias = current($qbd->getDQLPart('from'))->getAlias();
301 301
             }
302
-            $qbd->orderBy($alias . '.' . $order['field'], $order['type']);
302
+            $qbd->orderBy($alias.'.'.$order['field'], $order['type']);
303 303
         }
304 304
     }
305 305
 
Please login to merge, or discard this patch.