Completed
Push — master ( 46d7da...91da94 )
by Lucas
24s
created
src/LoginCidadao/CoreBundle/Controller/DefaultController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
             $email
74 74
                 ->setType('contact-mail')
75 75
                 ->setSubject('Fale conosco - '.$form->get('firstName')->getData())
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Controller/Dev/ShoutController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/PlaceOfBirthType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Controller/ClientRegistrationController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/PersonAddressFormType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Entity/PersonNotificationOption.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/LoginCidadao/OAuthBundle/Entity/ClientRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Controller/AuthorizeController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
OpenIDBundle/Validator/Constraints/SectorIdentifierUriValidator.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.