@@ -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')); |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | protected function assertJsonResponse($response, $statusCode = 200, |
| 27 | - $checkValidJson = true, |
|
| 28 | - $contentType = 'application/json') |
|
| 27 | + $checkValidJson = true, |
|
| 28 | + $contentType = 'application/json') |
|
| 29 | 29 | { |
| 30 | 30 | $this->assertEquals( |
| 31 | 31 | $statusCode, $response->getStatusCode(), $response->getContent() |
@@ -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 | /** |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Guilherme Donato |
|
| 4 | - */ |
|
| 3 | + * @author Guilherme Donato |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace LoginCidadao\CoreBundle\Controller; |
| 7 | 7 | |