Completed
Pull Request — master (#11)
by Lucas
37:59 queued 26:54
created
src/LoginCidadao/CoreBundle/Controller/DocumentController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@
 block discarded – undo
41 41
         if ($form->isValid()) {
42 42
             $event = new FormEvent($form, $request);
43 43
             $dispatcher->dispatch(ProfileEditListner::PROFILE_DOC_EDIT_SUCCESS,
44
-                                  $event);
44
+                                    $event);
45 45
 
46 46
             $userManager = $this->get('fos_user.user_manager');
47 47
             $userManager->updateUser($user);
48 48
             $translator = $this->get('translator');
49 49
             $this->get('session')->getFlashBag()->add('success',
50
-                                                      $translator->trans("Documents were successfully changed"));
50
+                                                        $translator->trans("Documents were successfully changed"));
51 51
             return $this->redirect($this->generateUrl('lc_documents'));
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/DQL/CountIf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
21 21
     {
22
-        return 'count(case when ' . $this->var1->dispatch($sqlWalker) . ' then 1 else null end)'; // (7)
22
+        return 'count(case when '.$this->var1->dispatch($sqlWalker).' then 1 else null end)'; // (7)
23 23
     }
24 24
 }
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
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/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.