@@ -69,7 +69,7 @@ |
||
69 | 69 | $translator = $this->get('translator'); |
70 | 70 | $message = $translator->trans('contact.form.sent'); |
71 | 71 | if ($form->isValid()) { |
72 | - $email = new SentEmail(); |
|
72 | + $email = new SentEmail(); |
|
73 | 73 | |
74 | 74 | ->setType('contact-mail') |
75 | 75 | ->setSubject('Fale conosco - '.$form->get('firstName')->getData()) |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | $form = $this->createFormBuilder(); |
64 | 64 | foreach ($placeholders as $placeholder) { |
65 | - $form->add('place_' . $placeholder->getId(), 'text', |
|
65 | + $form->add('place_'.$placeholder->getId(), 'text', |
|
66 | 66 | array( |
67 | 67 | 'label' => $placeholder->getName(), |
68 | 68 | 'data' => $placeholder->getDefault() |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function buildForm(FormBuilderInterface $builder, array $options) |
30 | 30 | { |
31 | 31 | $builder->addEventListener(FormEvents::PRE_SET_DATA, |
32 | - function (FormEvent $event) { |
|
32 | + function(FormEvent $event) { |
|
33 | 33 | $form = $event->getForm()->getParent(); |
34 | 34 | $person = $form->getData(); |
35 | 35 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $form->add('city', new CitySelectorComboType($person->getState())); |
40 | 40 | }); |
41 | 41 | $builder->addEventListener(FormEvents::PRE_SUBMIT, |
42 | - function (FormEvent $event) { |
|
42 | + function(FormEvent $event) { |
|
43 | 43 | $data = $event->getData(); |
44 | 44 | $form = $event->getForm()->getParent(); |
45 | 45 |
@@ -178,7 +178,7 @@ |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | private function checkRegistrationAccessToken(Request $request, |
181 | - Client $client) |
|
181 | + Client $client) |
|
182 | 182 | { |
183 | 183 | $raw = $request->get('access_token', |
184 | 184 | $request->headers->get('authorization')); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function buildForm(FormBuilderInterface $builder, array $options) |
30 | 30 | { |
31 | 31 | $builder->addEventListener(FormEvents::PRE_SET_DATA, |
32 | - function (FormEvent $event) { |
|
32 | + function(FormEvent $event) { |
|
33 | 33 | $form = $event->getForm()->getParent(); |
34 | 34 | $person = $form->getData(); |
35 | 35 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $form->add('city', new CitySelectorComboType($person->getState())); |
40 | 40 | }); |
41 | 41 | $builder->addEventListener(FormEvents::PRE_SUBMIT, |
42 | - function (FormEvent $event) { |
|
42 | + function(FormEvent $event) { |
|
43 | 43 | $data = $event->getData(); |
44 | 44 | $form = $event->getForm()->getParent(); |
45 | 45 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace LoginCidadao\OAuthBundle\Entity; |
3 | 3 | |
4 | 4 | use Doctrine\ORM\Mapping as ORM; |
5 | -use Symfony\Component\Validator\Constraints as Assert; |
|
6 | 5 | use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; |
7 | 6 | |
8 | 7 | /** |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | return array_map( |
67 | - function ($item) use ($idKey, $indexedClients) { |
|
67 | + function($item) use ($idKey, $indexedClients) { |
|
68 | 68 | $id = $item[$idKey]; |
69 | 69 | $item[$idKey] = $indexedClients[$id]; |
70 | 70 | return $item; |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use LoginCidadao\OpenIDBundle\Entity\ClientMetadata; |
8 | 8 | use LoginCidadao\OpenIDBundle\Manager\ClientManager; |
9 | 9 | use LoginCidadao\OpenIDBundle\Validator\SectorIdentifierUriChecker; |
10 | -use Symfony\Bundle\FrameworkBundle\Client; |
|
11 | 10 | use Symfony\Component\HttpFoundation\Request; |
12 | 11 | use OAuth2\ServerBundle\Controller\AuthorizeController as BaseController; |
13 | 12 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | $scopeManager = $this->getScopeManager(); |
65 | 65 | $scopes = array_map( |
66 | - function ($value) { |
|
66 | + function($value) { |
|
67 | 67 | return $value->getScope(); |
68 | 68 | }, |
69 | 69 | $scopeManager->findScopesByScopes($scope) |
@@ -10,8 +10,6 @@ |
||
10 | 10 | |
11 | 11 | namespace LoginCidadao\OpenIDBundle\Validator\Constraints; |
12 | 12 | |
13 | -use Doctrine\ORM\EntityManager; |
|
14 | -use LoginCidadao\OAuthBundle\Entity\Client; |
|
15 | 13 | use LoginCidadao\OAuthBundle\Entity\Organization; |
16 | 14 | use LoginCidadao\OAuthBundle\Entity\OrganizationRepository; |
17 | 15 | use LoginCidadao\OpenIDBundle\Entity\ClientMetadata; |