Completed
Branch master (ca1420)
by Guilherme
07:28 queued 32s
created
src/LoginCidadao/CoreBundle/EventListener/ExceptionListener.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
             $this->session->getFlashBag()->add('error', $this->translator->trans($exception->getMessage()));
56 56
             $url = $this->router->generate('fos_user_profile_edit');
57 57
             $event->setResponse(new RedirectResponse($url));
58
-        }elseif ($exception instanceof NotFoundHttpException){
58
+        }elseif ($exception instanceof NotFoundHttpException) {
59 59
             $request = $event->getRequest();
60 60
             $route = $request->get('_route');
61 61
 
62
-            if($route == 'fos_user_registration_confirm') {
62
+            if ($route == 'fos_user_registration_confirm') {
63 63
                 $this->session->getFlashBag()->add('error', $this->translator->trans('This e-mail is already confirmed.'));
64 64
                 $url = $this->router->generate('fos_user_profile_edit');
65 65
                 $event->setResponse(new RedirectResponse($url));
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $this->session->getFlashBag()->add('error', $this->translator->trans($exception->getMessage()));
56 56
             $url = $this->router->generate('fos_user_profile_edit');
57 57
             $event->setResponse(new RedirectResponse($url));
58
-        }elseif ($exception instanceof NotFoundHttpException){
58
+        } elseif ($exception instanceof NotFoundHttpException){
59 59
             $request = $event->getRequest();
60 60
             $route = $request->get('_route');
61 61
 
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/EventListener/ProfileEditListner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $this->userManager = $var;
179 179
     }
180 180
 
181
-    private function checkEmailChanged(Person &$user)
181
+    private function checkEmailChanged(Person & $user)
182 182
     {
183 183
         if ($user->getEmail() !== $this->email) {
184 184
             if (is_null($user->getConfirmationToken())) {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         }
195 195
     }
196 196
 
197
-    private function checkCPFChanged(Person &$user)
197
+    private function checkCPFChanged(Person & $user)
198 198
     {
199 199
         if ($user->getCpf() !== $this->cpf) {
200 200
             if ($user->getCpf()) {
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/DataTransformer/FromArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function reverseTransform($number)
19 19
     {
20
-        if (! $number) {
20
+        if (!$number) {
21 21
             return null;
22 22
         }
23 23
         
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/ClientBaseFormType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $checker = $this->security;
36 36
         $person  = $this->tokenStorage->getToken()->getUser();
37 37
 
38
-        $organizationQueryBuilder = function (EntityRepository $er) use ($person, $checker) {
38
+        $organizationQueryBuilder = function(EntityRepository $er) use ($person, $checker) {
39 39
             $query = $er->createQueryBuilder('o');
40 40
             if (!$checker->isGranted('ROLE_ORGANIZATIONS_BIND_CLIENT_ANY_ORG')) {
41 41
                 $query->where(':person MEMBER OF o.members')
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         $builder->addEventListener(FormEvents::PRE_SUBMIT,
86
-            function (FormEvent $event) {
86
+            function(FormEvent $event) {
87 87
             $entity = $event->getData();
88 88
             $form   = $event->getForm();
89 89
             $form->add('owners', 'ajax_choice',
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         ;
124 124
 
125 125
         $builder->addEventListener(FormEvents::PRE_SET_DATA,
126
-            function (FormEvent $event) {
126
+            function(FormEvent $event) {
127 127
             $entity = $event->getData();
128 128
             $form   = $event->getForm();
129 129
             if ($entity->getId()) {
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/ClientFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         $reserved = array_combine($this->reservedScopes, $this->reservedScopes);
31 31
 
32 32
         $builder->addEventListener(FormEvents::PRE_SET_DATA,
33
-            function (FormEvent $event) use ($security, $public, $reserved) {
33
+            function(FormEvent $event) use ($security, $public, $reserved) {
34 34
             $form = $event->getForm();
35 35
 
36 36
             if ($security->isGranted('ROLE_EDIT_CLIENT_ALLOWED_SCOPES') === false) {
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/DocRgFormType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@
 block discarded – undo
27 27
         $builder->add('id', 'hidden', array(
28 28
             'required' => false
29 29
         ));
30
-        $builder->add('state', 'entity',array(
30
+        $builder->add('state', 'entity', array(
31 31
             'required' => true,
32 32
             'class' => 'LoginCidadaoCoreBundle:State',
33 33
             'choice_label' => 'name',
34 34
             'query_builder' => function(EntityRepository $er) {
35 35
                 $country = $er->createQueryBuilder('h')->getEntityManager()->getRepository('LoginCidadaoCoreBundle:Country')->findOneBy(array('iso2' => 'BR'));
36 36
                 return $er->createQueryBuilder('u')
37
-                ->where('u.reviewed = ' . Country::REVIEWED_OK)
37
+                ->where('u.reviewed = '.Country::REVIEWED_OK)
38 38
                 ->andWhere('u.country = :country')
39 39
                 ->setParameter('country', $country)
40 40
                 ->orderBy('u.name', 'ASC');
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/IdCardType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'class' => 'LoginCidadaoCoreBundle:State',
42 42
             'choice_label' => 'name',
43 43
             'read_only' => true,
44
-            'query_builder' => function (EntityRepository $er) use($countryAcronym) {
44
+            'query_builder' => function(EntityRepository $er) use($countryAcronym) {
45 45
                 return $er->createQueryBuilder('s')
46 46
                         ->join('LoginCidadaoCoreBundle:Country', 'c',
47 47
                             'WITH', 's.country = c')
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
 
64 64
         $dispatcher = $this->dispatcher;
65 65
         $builder->addEventListener(FormEvents::PRE_SET_DATA,
66
-            function (FormEvent $event) use ($dispatcher) {
66
+            function(FormEvent $event) use ($dispatcher) {
67 67
             $dispatcher->dispatch(ValidationEvents::ID_CARD_FORM_PRE_SET_DATA,
68 68
                 $event);
69 69
         });
70 70
         $builder->addEventListener(FormEvents::PRE_SUBMIT,
71
-            function (FormEvent $event) use ($dispatcher) {
71
+            function(FormEvent $event) use ($dispatcher) {
72 72
             $dispatcher->dispatch(ValidationEvents::ID_CARD_FORM_PRE_SUBMIT,
73 73
                 $event);
74 74
         });
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/PlaceholderFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             'required' => true,
39 39
             'class' => 'LoginCidadaoNotificationBundle:Category',
40 40
             'choice_label' => 'name',
41
-            'query_builder' => function (EntityRepository $er) use(&$user) {
41
+            'query_builder' => function(EntityRepository $er) use(&$user) {
42 42
                 return $er->createQueryBuilder('u')
43 43
                         ->join('LoginCidadaoOAuthBundle:Client', 'c', 'with',
44 44
                                'u.client = c')
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/TwoFactorAuthenticationFormType.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     {
16 16
         $builder
17 17
             ->add('googleAuthenticatorSecret', 'text',
18
-                  array(
18
+                    array(
19 19
                 'read_only' => true,
20 20
                 'label' => "Authenticator Secret"
21 21
             ))
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         }
42 42
         $builder
43 43
             ->add('enable', 'submit',
44
-                  array(
44
+                    array(
45 45
                 'attr' => array('class' => 'btn btn-success'),
46 46
                 'label' => 'Activate Two-Factor Authentication')
47 47
         );
Please login to merge, or discard this patch.