Test Setup Failed
Branch master (d874c5)
by Lucas
18:59
created
src/LoginCidadao/CoreBundle/Controller/Dev/ShoutController.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,17 +63,17 @@  discard block
 block discarded – undo
63 63
         $form = $this->createFormBuilder();
64 64
         foreach ($placeholders as $placeholder) {
65 65
             $form->add('place_' . $placeholder->getId(), 'text',
66
-                       array(
66
+                        array(
67 67
                 'label' => $placeholder->getName(),
68 68
                 'data' => $placeholder->getDefault()
69 69
             ));
70 70
         }
71 71
         $form->add('id', 'hidden',
72
-                   array(
72
+                    array(
73 73
             'data' => $categoryId
74 74
         ));
75 75
         $form->add('owners', 'ajax_choice',
76
-                   array(
76
+                    array(
77 77
             'attr' => array(
78 78
                 'data-ac-route' => $this->generateUrl('lc_dev_shout_step_category'),
79 79
                 'data-ac-search-prop' => 'name',
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             return $this->redirect($this->generateUrl('lc_dev_shout_new'));
132 132
         }
133 133
         $form = $this->createForm('lc.client.base.form.type',
134
-                                  $client);
134
+                                    $client);
135 135
         $form->handleRequest($request);
136 136
         $messages = '';
137 137
         if ($form->isValid()) {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             $messages = 'aeee';
142 142
         }
143 143
         return $this->render('LoginCidadaoCoreBundle:Dev\Client:new.html.twig',
144
-                             array(
144
+                                array(
145 145
                 'form' => $form->createView(),
146 146
                 'client' => $client,
147 147
                 'messages' => $messages
Please login to merge, or discard this 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/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.