Completed
Branch master (ca1420)
by Guilherme
07:28 queued 32s
created
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 1 patch
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.
src/LoginCidadao/CoreBundle/Form/Type/PersonResumeFormType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,9 +152,9 @@
 block discarded – undo
152 152
     }
153 153
 
154 154
     public static function filterRoles(PersonInterface $person,
155
-                                       PersonInterface $loggedUser,
156
-                                       FormInterface $form, array $roles,
157
-                                       $securityHelper, $security)
155
+                                        PersonInterface $loggedUser,
156
+                                        FormInterface $form, array $roles,
157
+                                        $securityHelper, $security)
158 158
     {
159 159
         $loggedUserLevel        = $securityHelper->getLoggedInUserLevel();
160 160
         $targetPersonLevel      = $securityHelper->getTargetPersonLevel($person);
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.
src/LoginCidadao/CoreBundle/Security/OIDC/UserProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      * @return UserInterface
113 113
      */
114 114
     public function createUser($username, $password, array $roles = array(),
115
-                               array $scopes = array())
115
+                                array $scopes = array())
116 116
     {
117 117
         $user = parent::createUser();
118 118
 
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Security/User/Manager/UserManager.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * @return string
82 82
      */
83 83
     public function getNextAvailableUsername($username, $maxIterations = 10,
84
-                                             $default = null)
84
+                                                $default = null)
85 85
     {
86 86
         $i = 0;
87 87
         $testName = $username;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     public function findUserByUsernameOrEmail($username) {
105
-       if (is_numeric($cpf = preg_replace('/[^0-9]/', '', $username)) && strlen($cpf) == 11) {
105
+        if (is_numeric($cpf = preg_replace('/[^0-9]/', '', $username)) && strlen($cpf) == 11) {
106 106
             $person = parent::findUserBy(array('cpf' => $cpf));
107 107
             if ($person !== null) {
108 108
                 return $person;
Please login to merge, or discard this patch.
src/LoginCidadao/InfiniteScrollBundle/Controller/FragmentController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function fragmentAction($name)
15 15
     {
16 16
         return $this->render('LoginCidadaoInfiniteScrollBundle:Default:index.html.twig',
17
-                             array('name' => $name));
17
+                                array('name' => $name));
18 18
     }
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Controller/BroadcastController.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             $em->persist($broadcast);
113 113
             $em->flush();
114 114
             $url = $this->generateUrl('lc_dev_broadcast_settings',
115
-              array('broadcastId' => $broadcast->getId()));
115
+                array('broadcastId' => $broadcast->getId()));
116 116
             return $this->redirect($url);
117 117
         }
118 118
 
@@ -138,23 +138,23 @@  discard block
 block discarded – undo
138 138
 
139 139
         $form->handleRequest($request);
140 140
         if ($form->isValid()) {
141
-          $placeholders = $form->get('placeholders')->getData();
142
-          $broadcast->setHtmlTemplate($placeholders, $form->get('title')->getData(), $form->get('shortText')->getData());
141
+            $placeholders = $form->get('placeholders')->getData();
142
+            $broadcast->setHtmlTemplate($placeholders, $form->get('title')->getData(), $form->get('shortText')->getData());
143 143
 
144
-          $translator = $this->get('translator');
145
-          if ($form->get('saveAndAdd')->isClicked()) {
144
+            $translator = $this->get('translator');
145
+            if ($form->get('saveAndAdd')->isClicked()) {
146 146
             $this->sendBroadcast($broadcast, $form->get('shortText')->getData(), $form->get('title')->getData());
147 147
             $broadcast->setSent(true);
148 148
             $this->get('session')->getFlashBag()->add('success', $translator->trans("Broadcast sent"));
149
-          } else {
149
+            } else {
150 150
             $this->get('session')->getFlashBag()->add('success', $translator->trans("Broadcast saved"));
151
-          }
151
+            }
152 152
 
153
-          $em = $this->getDoctrine()->getManager();
154
-          $em->persist($broadcast);
155
-          $em->flush();
153
+            $em = $this->getDoctrine()->getManager();
154
+            $em->persist($broadcast);
155
+            $em->flush();
156 156
 
157
-          return $this->redirect($this->generateUrl('lc_dev_broadcasts'));
157
+            return $this->redirect($this->generateUrl('lc_dev_broadcasts'));
158 158
         }
159 159
 
160 160
         return array('form' => $form->createView());
@@ -165,18 +165,18 @@  discard block
 block discarded – undo
165 165
         $html = $broadcast->getHtmlTemplate();
166 166
 
167 167
         foreach ($broadcast->getReceivers() as $person) {
168
-          $notification = new Notification();
169
-          $notification->setIcon($broadcast->getCategory()->getDefaultIcon());
170
-          //$notification->setCallbackUrl("url");
171
-          $notification->setShortText($shortText);
172
-          $notification->setTitle($title);
173
-          $notification->setHtmlTemplate($html);
174
-          $notification->setPerson($person);
175
-          $notification->setSender($broadcast->getCategory()->getClient());
176
-          $notification->setCategory($broadcast->getCategory());
177
-          $notification->setMailTemplate($broadcast->getMailTemplate());
178
-
179
-          $helper->send($notification);
168
+            $notification = new Notification();
169
+            $notification->setIcon($broadcast->getCategory()->getDefaultIcon());
170
+            //$notification->setCallbackUrl("url");
171
+            $notification->setShortText($shortText);
172
+            $notification->setTitle($title);
173
+            $notification->setHtmlTemplate($html);
174
+            $notification->setPerson($person);
175
+            $notification->setSender($broadcast->getCategory()->getClient());
176
+            $notification->setCategory($broadcast->getCategory());
177
+            $notification->setMailTemplate($broadcast->getMailTemplate());
178
+
179
+            $helper->send($notification);
180 180
         }
181 181
     }
182 182
 
Please login to merge, or discard this patch.
src/LoginCidadao/NotificationBundle/Controller/NotificationController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
     }
141 141
 
142 142
     private function getNotificationGrid($offset = 0, $perIteration = 10,
143
-                                         ClientInterface $client = null)
143
+                                            ClientInterface $client = null)
144 144
     {
145 145
         $handler = $this->getAuthenticatedNotificationHandler();
146 146
         if ($client instanceof ClientInterface) {
Please login to merge, or discard this patch.