@@ -141,7 +141,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -101,7 +101,7 @@ |
||
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(); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | public function buildForm(FormBuilderInterface $builder, array $options) |
38 | 38 | { |
39 | 39 | $this->roles = $options['roles']; |
40 | - $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr' => ['class' => 'form-control'],]) |
|
40 | + $builder ->add('username', null, ['label' => "Nom d'utilisateur", 'attr' => ['class' => 'form-control'], ]) |
|
41 | 41 | ->add('email', EmailType::class, array( |
42 | 42 | 'required' => false, |
43 | 43 | 'label' => 'E-mail', |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | public function createAction(Request $request) |
100 | 100 | { |
101 | 101 | $user = new User(); |
102 | - $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'),]); |
|
102 | + $form = $this->createForm(UserType::class, $user, ['action' => $this->generateUrl('user_create'), ]); |
|
103 | 103 | $form->handleRequest($request); |
104 | - $return = ['user' => $user, 'form' => $form->createView(),]; |
|
104 | + $return = ['user' => $user, 'form' => $form->createView(), ]; |
|
105 | 105 | |
106 | 106 | if ($form->isValid()) { |
107 | 107 | $user->setEnabled(true); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | $return = ['user' => $user, |
166 | 166 | 'edit_form' => $editForm->createView(), |
167 | - 'delete_form' => $deleteForm->createView(),]; |
|
167 | + 'delete_form' => $deleteForm->createView(), ]; |
|
168 | 168 | |
169 | 169 | if ($editForm->handleRequest($request)->isValid()) { |
170 | 170 | foreach ($user->getGroups() as $key => $group) { |