@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function buildForm(FormBuilderInterface $builder, array $options) |
| 45 | 45 | { |
| 46 | - $members = function (EntityRepository $er) { |
|
| 46 | + $members = function(EntityRepository $er) { |
|
| 47 | 47 | return $er->createQueryBuilder('p') |
| 48 | 48 | ->innerJoin( |
| 49 | 49 | 'LoginCidadaoOAuthBundle:Organization', |
@@ -132,11 +132,11 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | $builder->addEventListener( |
| 134 | 134 | FormEvents::PRE_SUBMIT, |
| 135 | - function (FormEvent $event) { |
|
| 135 | + function(FormEvent $event) { |
|
| 136 | 136 | $entity = $event->getData(); |
| 137 | 137 | $form = $event->getForm(); |
| 138 | 138 | |
| 139 | - $qb = function (EntityRepository $er) use ($entity) { |
|
| 139 | + $qb = function(EntityRepository $er) use ($entity) { |
|
| 140 | 140 | $sql = $er->createQueryBuilder('u'); |
| 141 | 141 | if (!empty($entity['members'])) { |
| 142 | 142 | $sql->where('u.id in (:members)'); |
@@ -179,11 +179,11 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | $builder->addEventListener( |
| 181 | 181 | FormEvents::PRE_SET_DATA, |
| 182 | - function (FormEvent $event) { |
|
| 182 | + function(FormEvent $event) { |
|
| 183 | 183 | $entity = $event->getData(); |
| 184 | 184 | $form = $event->getForm(); |
| 185 | 185 | |
| 186 | - $qb = function (EntityRepository $er) use (&$entity) { |
|
| 186 | + $qb = function(EntityRepository $er) use (&$entity) { |
|
| 187 | 187 | return $er->createQueryBuilder('p') |
| 188 | 188 | ->innerJoin( |
| 189 | 189 | 'LoginCidadaoOAuthBundle:Organization', |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Symfony\Component\Translation\TranslatorInterface; |
| 17 | 17 | use LoginCidadao\ValidationBundle\Validator\Constraints\UsernameValidator; |
| 18 | 18 | use Doctrine\ORM\EntityManager; |
| 19 | -use LoginCidadao\CoreBundle\Exception\LcEmailException; |
|
| 20 | 19 | use LoginCidadao\CoreBundle\Entity\Authorization; |
| 21 | 20 | |
| 22 | 21 | class RegisterListner implements EventSubscriberInterface |