Completed
Pull Request — master (#11)
by Lucas
33:48 queued 07:22
created
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/CityRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
             ->select('c')
16 16
             ->from('LoginCidadaoCoreBundle:City', 'c')
17 17
             ->join('LoginCidadaoCoreBundle:State', 's', 'WITH',
18
-                   'c.state = s')
18
+                    'c.state = s')
19 19
             ->join('LoginCidadaoCoreBundle:Country', 'co', 'WITH',
20
-                   's.country = co')
20
+                    's.country = co')
21 21
             ->where('c.name LIKE :string OR LOWER(c.name) LIKE :string')
22 22
             ->addOrderBy('s.preference', 'DESC')
23 23
             ->addOrderBy('c.name', 'ASC')
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Entity/IdCardRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
         $qb = $this->createQueryBuilder('u')
14 14
             ->select('u.id, u.value, right(s.iso6, 2) iso6')
15 15
             ->join('LoginCidadaoCoreBundle:State', 's', 'with',
16
-                   'u.state = s')
16
+                    'u.state = s')
17 17
             ->where('u.person = :person')
18 18
             ->setParameters(array('person' => $person))
19 19
             ->orderBy('u.id', 'desc');
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $qb = $this->createQueryBuilder('i')
35 35
             ->join('LoginCidadaoCoreBundle:State', 's', 'with',
36
-                   'i.state = s')
36
+                    'i.state = s')
37 37
             ->where('i.person = :person')
38 38
             ->setParameters(array('person' => $person))
39 39
             ->orderBy('s.acronym', 'asc');
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Entity/StateRepository.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
                 ->select('s')
16 16
                 ->from('LoginCidadaoCoreBundle:State', 's')
17 17
                 ->join('LoginCidadaoCoreBundle:Country', 'c', 'WITH',
18
-                       's.country = c')
18
+                        's.country = c')
19 19
                 ->where('s.name LIKE :string OR LOWER(s.name) LIKE :string')
20 20
                 ->addOrderBy('c.preference', 'DESC')
21 21
                 ->addOrderBy('s.name', 'ASC')
Please login to merge, or discard this 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 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/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 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@  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()) {
23 23
                 $name = $cat->getClient()
24 24
                     ->getName();
25 25
                 $form->add('client', 'text',
26
-                           array(
26
+                            array(
27 27
                     'required' => true,
28 28
                     'label' => 'Service',
29 29
                     'mapped' => false,
@@ -31,28 +31,28 @@  discard block
 block discarded – undo
31 31
                     'data' => $name,
32 32
                 ));
33 33
                 $form->add('mailTemplate', 'textarea',
34
-                           array(
34
+                            array(
35 35
                     'required' => true,
36 36
                     'attr' => array('rows' => 4)
37 37
                 ));
38 38
                 $form->add('markdownTemplate', 'textarea',
39
-                           array(
39
+                            array(
40 40
                     'required' => true,
41 41
                     'attr' => array('rows' => 4)
42 42
                 ));
43 43
                 $form->add('id', 'integer',
44
-                           array(
44
+                            array(
45 45
                     'required' => false,
46 46
                     'read_only' => true
47 47
                 ));
48 48
             } else {
49 49
                 $form->add('id', 'hidden',
50
-                           array(
50
+                            array(
51 51
                     'required' => false,
52 52
                     'read_only' => true
53 53
                 ));
54 54
                 $form->add('client', 'entity',
55
-                           array(
55
+                            array(
56 56
                     'required' => true,
57 57
                     'label' => 'Service',
58 58
                     'class' => 'LoginCidadaoOAuthBundle:Client',
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
             }
68 68
         });
69 69
         $builder->add('name', 'text',
70
-                      array(
70
+                        array(
71 71
             'required' => true
72 72
         ));
73 73
         $builder->add('defaultIcon', 'choice',
74
-                      array(
74
+                        array(
75 75
             'choices' => array(
76 76
                 'glyphicon glyphicon-envelope' => 'envelope',
77 77
                 'glyphicon glyphicon-exclamation-sign' => 'exclamation-sign'
@@ -79,19 +79,19 @@  discard block
 block discarded – undo
79 79
             'required' => true
80 80
         ));
81 81
         $builder->add('defaultTitle', 'text',
82
-                      array(
82
+                        array(
83 83
             'required' => true
84 84
         ));
85 85
         $builder->add('defaultShortText', 'text',
86
-                      array(
86
+                        array(
87 87
             'required' => true
88 88
         ));
89 89
         $builder->add('mailSenderAddress', 'text',
90
-                      array(
90
+                        array(
91 91
             'required' => true
92 92
         ));
93 93
         $builder->add('emailable', 'choice',
94
-                      array(
94
+                        array(
95 95
             'choices' => array(
96 96
                 '0' => 'No',
97 97
                 '1' => 'Yes'
Please login to merge, or discard this 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.