@@ -37,7 +37,7 @@ discard block |
||
| 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', |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | )) |
| 54 | 54 | ->add('groups', EntityType::class, array( |
| 55 | 55 | 'class' => 'AppBundle:Group', |
| 56 | - 'query_builder' => function (EntityRepository $er) { |
|
| 56 | + 'query_builder' => function(EntityRepository $er) { |
|
| 57 | 57 | return $er->createQueryBuilder('g') |
| 58 | 58 | ->where("REGEXP(g.roles, :roles) = 1") |
| 59 | 59 | ->setParameter('roles', $this->roles); |