Test Setup Failed
Branch master (d874c5)
by Lucas
18:59
created
src/LoginCidadao/CoreBundle/DQL/LowerUnaccent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
30 30
     {
31
-        return 'lower_unaccent(' . $this->var1->dispatch($sqlWalker) . ')'; // (7)
31
+        return 'lower_unaccent('.$this->var1->dispatch($sqlWalker).')'; // (7)
32 32
     }
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/DQL/Right.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
 
23 23
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
24 24
     {
25
-        return 'RIGHT(' . $this->var1->dispatch($sqlWalker) . ', ' . $this->var2->dispatch($sqlWalker) . ')'; // (7)
25
+        return 'RIGHT('.$this->var1->dispatch($sqlWalker).', '.$this->var2->dispatch($sqlWalker).')'; // (7)
26 26
     }
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/DynamicFormEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     /**
13 13
      * This event is triggered just after the form information gets persisted.
14 14
      */
15
-    const POST_FORM_EDIT       = 'dynamicform_post_edit';
15
+    const POST_FORM_EDIT = 'dynamicform_post_edit';
16 16
 
17 17
     /**
18 18
      * This event is triggered before redirecting the user to the target URL.
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Entity/StateRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@
 block discarded – undo
47 47
     
48 48
     public function findStateByPreferredCountry($countryAcronym)
49 49
     {
50
-        return $this->createQueryBuilder('s')->join('LoginCidadaoCoreBundle:Country', 'c', 'WITH', 's.country = c')->where('s.reviewed = ' . Country::REVIEWED_OK)
50
+        return $this->createQueryBuilder('s')->join('LoginCidadaoCoreBundle:Country', 'c', 'WITH', 's.country = c')->where('s.reviewed = '.Country::REVIEWED_OK)
51 51
                         ->andWhere('c.iso2 = :country')
52 52
                         ->setParameter('country', $countryAcronym)
53
-                        ->orderBy('s.name', 'ASC')->getQuery()->getResult();;
53
+                        ->orderBy('s.name', 'ASC')->getQuery()->getResult(); ;
54 54
     }
55 55
 
56 56
 }
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/EventListener/ExceptionListener.php 1 patch
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.
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/AjaxChoiceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         if (array_key_exists('ajax_choice_attr', $options)) {
55 55
             $nForm = $form->getParent()->getName();
56
-            $options['ajax_choice_attr']['holder_id'] = $nForm . '_' . $form->getName();
56
+            $options['ajax_choice_attr']['holder_id'] = $nForm.'_'.$form->getName();
57 57
             if (isset($options['ajax_choice_attr']['filter'])) {
58 58
                 $this->transformation1($options['ajax_choice_attr']['filter'], $nForm);
59 59
             }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         }
76 76
         if (isset($grid['extra_form_prop'])) {
77 77
             foreach ($grid['extra_form_prop'] as &$extraForm) {
78
-                $extraForm = $nForm . '_' . $extraForm;
78
+                $extraForm = $nForm.'_'.$extraForm;
79 79
             }
80 80
         }
81 81
     }
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/CategoryFormType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         $person = $this->getUser();
17 17
 
18 18
         $builder->addEventListener(FormEvents::PRE_SET_DATA,
19
-                                   function (FormEvent $event) use($person) {
19
+                                   function(FormEvent $event) use($person) {
20 20
             $cat = $event->getData();
21 21
             $form = $event->getForm();
22 22
             if ($cat->getId()) {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                     'label' => 'Service',
58 58
                     'class' => 'LoginCidadaoOAuthBundle:Client',
59 59
                     'choice_label' => 'name',
60
-                    'query_builder' => function (EntityRepository $er) use($person) {
60
+                    'query_builder' => function(EntityRepository $er) use($person) {
61 61
                         return $er->createQueryBuilder('c')
62 62
                                 ->where(':person MEMBER OF c.owners')
63 63
                                 ->setParameter('person', $person)
Please login to merge, or discard this patch.