@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $translator = $this->get('translator'); |
| 70 | 70 | $message = $translator->trans('contact.form.sent'); |
| 71 | 71 | if ($form->isValid()) { |
| 72 | - $email = new SentEmail(); |
|
| 72 | + $email = new SentEmail(); |
|
| 73 | 73 | |
| 74 | 74 | ->setType('contact-mail') |
| 75 | 75 | ->setSubject('Fale conosco - '.$form->get('firstName')->getData()) |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function gridDeveloperFilterAction(Request $request) |
| 83 | 83 | { |
| 84 | - $grid = new GridHelper(); |
|
| 84 | + $grid = new GridHelper(); |
|
| 85 | 85 | $grid->setId('developer-filter-grid'); |
| 86 | 86 | $grid->setPerPage(5); |
| 87 | 87 | $grid->setMaxResult(5); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function gridDeveloperAction(Request $request) |
| 111 | 111 | { |
| 112 | - $grid = new GridHelper(); |
|
| 112 | + $grid = new GridHelper(); |
|
| 113 | 113 | $grid->setId('developer-grid'); |
| 114 | 114 | $grid->setPerPage(5); |
| 115 | 115 | $grid->setMaxResult(5); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | if (!$client) { |
| 143 | 143 | return $this->redirect($this->generateUrl('lc_dev_client_new')); |
| 144 | 144 | } |
| 145 | - $form = $this->get('form.factory')-> |
|
| 145 | + $form = $this->get('form.factory')-> |
|
| 146 | 146 | create($this->get('lc.client.base.form.type'), |
| 147 | 147 | $client); |
| 148 | 148 | $form->handleRequest($request); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $manager->persist($category); |
| 39 | 39 | $manager->flush(); |
| 40 | 40 | return $this->redirect($this->generateUrl('lc_dev_not_edit', |
| 41 | - array( |
|
| 41 | + array( |
|
| 42 | 42 | 'id' => $category->getId() |
| 43 | 43 | ))); |
| 44 | 44 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $request->query->set('category_id', $id); |
| 114 | 114 | $placeholders = $this->placeholderGridAction($request); |
| 115 | 115 | return $this->render('LoginCidadaoCoreBundle:Dev\Notification:new.html.twig', |
| 116 | - array( |
|
| 116 | + array( |
|
| 117 | 117 | 'form' => $form->createView(), |
| 118 | 118 | 'client' => $client, |
| 119 | 119 | 'placeholderGrid' => $placeholders['grid'] |
@@ -133,9 +133,9 @@ discard block |
||
| 133 | 133 | $placeholder = $em->getRepository('LoginCidadaoNotificationBundle:Placeholder') |
| 134 | 134 | ->createQueryBuilder('u') |
| 135 | 135 | ->join('LoginCidadaoNotificationBundle:Category', |
| 136 | - 'cat', 'with', 'u.category = cat') |
|
| 136 | + 'cat', 'with', 'u.category = cat') |
|
| 137 | 137 | ->join('LoginCidadaoOAuthBundle:Client', 'c', 'with', |
| 138 | - 'cat.client = c') |
|
| 138 | + 'cat.client = c') |
|
| 139 | 139 | ->where(':person MEMBER OF c.owners') |
| 140 | 140 | ->andWhere('u.id = :id') |
| 141 | 141 | ->setParameter('person', $this->getUser()) |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $sql = $em->getRepository('LoginCidadaoNotificationBundle:Placeholder') |
| 184 | 184 | ->createQueryBuilder('u') |
| 185 | 185 | ->join('LoginCidadaoNotificationBundle:Category', |
| 186 | - 'cat', 'with', 'u.category = cat') |
|
| 186 | + 'cat', 'with', 'u.category = cat') |
|
| 187 | 187 | ->join('LoginCidadaoOAuthBundle:Client', 'c', 'with', 'cat.client = c') |
| 188 | 188 | ->where(':person MEMBER OF c.owners') |
| 189 | 189 | ->andWhere('cat.id = :id') |
@@ -213,9 +213,9 @@ discard block |
||
| 213 | 213 | $placeholder = $em->getRepository('LoginCidadaoNotificationBundle:Placeholder') |
| 214 | 214 | ->createQueryBuilder('u') |
| 215 | 215 | ->join('LoginCidadaoNotificationBundle:Category', |
| 216 | - 'cat', 'with', 'u.category = cat') |
|
| 216 | + 'cat', 'with', 'u.category = cat') |
|
| 217 | 217 | ->join('LoginCidadaoOAuthBundle:Client', 'c', 'with', |
| 218 | - 'cat.client = c') |
|
| 218 | + 'cat.client = c') |
|
| 219 | 219 | ->where(':person MEMBER OF c.owners') |
| 220 | 220 | ->andWhere('u.id = :id') |
| 221 | 221 | ->setParameter('person', $this->getUser()) |
@@ -63,17 +63,17 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
@@ -62,7 +62,7 @@ |
||
| 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() |
@@ -41,13 +41,13 @@ |
||
| 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 | |
@@ -217,8 +217,8 @@ discard block |
||
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | private function addField(Request $request, |
| 220 | - FormBuilderInterface $formBuilder, $scope, |
|
| 221 | - Person $person) |
|
| 220 | + FormBuilderInterface $formBuilder, $scope, |
|
| 221 | + Person $person) |
|
| 222 | 222 | { |
| 223 | 223 | $placeOfBirthLevel = ''; |
| 224 | 224 | switch ($scope) { |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | } |
| 286 | 286 | |
| 287 | 287 | private function getPersonForm(FormBuilderInterface $formBuilder, |
| 288 | - Person $person) |
|
| 288 | + Person $person) |
|
| 289 | 289 | { |
| 290 | 290 | if ($formBuilder->has('person') === false) { |
| 291 | 291 | $formBuilder->add('person', new DynamicPersonType(), |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | private function addAddresses(FormBuilderInterface $formBuilder, |
| 299 | - Person $person, $new = true) |
|
| 299 | + Person $person, $new = true) |
|
| 300 | 300 | { |
| 301 | 301 | $addresses = $person->getAddresses(); |
| 302 | 302 | $address = new PersonAddress(); |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | private function addIdCard(Request $request, |
| 321 | - FormBuilderInterface $formBuilder, Person $person) |
|
| 321 | + FormBuilderInterface $formBuilder, Person $person) |
|
| 322 | 322 | { |
| 323 | 323 | $state = $this->getStateFromRequest($request); |
| 324 | 324 | $formData = $formBuilder->getData(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | |
| 70 | 70 | return $this->render('LoginCidadaoCoreBundle:Statistics:usersByRegion.html.twig', |
| 71 | - array('data' => $data, 'totalUsers' => $totalUsers)); |
|
| 71 | + array('data' => $data, 'totalUsers' => $totalUsers)); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $data = $repo->getCountByCity($stateId); |
| 83 | 83 | |
| 84 | 84 | return $this->render('LoginCidadaoCoreBundle:Statistics:usersByCity.html.twig', |
| 85 | - array('data' => $data)); |
|
| 85 | + array('data' => $data)); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | private function getNewUsersByService($days, $clientId = null, |
| 155 | - $format = 'html') |
|
| 155 | + $format = 'html') |
|
| 156 | 156 | { |
| 157 | 157 | $em = $this->getDoctrine()->getManager(); |
| 158 | 158 | $repo = $em->getRepository('LoginCidadaoOAuthBundle:Client'); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $person = $this->getPerson(); |
| 68 | 68 | $form = $this->createForm(new TwoFactorAuthenticationDisableFormType(), |
| 69 | - $person); |
|
| 69 | + $person); |
|
| 70 | 70 | $form->handleRequest($request); |
| 71 | 71 | |
| 72 | 72 | if ($form->isValid()) { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | { |
| 91 | 91 | $person = $this->getPerson(); |
| 92 | 92 | $form = $this->createForm(new TwoFactorAuthenticationBackupCodeGenerationFormType(), |
| 93 | - $person); |
|
| 93 | + $person); |
|
| 94 | 94 | $form->handleRequest($request); |
| 95 | 95 | |
| 96 | 96 | if ($form->isValid()) { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | protected function removeBackupCodes(EntityManager $em, |
| 150 | - PersonInterface $person) |
|
| 150 | + PersonInterface $person) |
|
| 151 | 151 | { |
| 152 | 152 | $backupCodes = $person->getBackupCodes(); |
| 153 | 153 | foreach ($backupCodes as $backupCode) { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | protected function generateBackupCodes(EntityManager $em, |
| 159 | - PersonInterface $person) |
|
| 159 | + PersonInterface $person) |
|
| 160 | 160 | { |
| 161 | 161 | $generator = new SecureRandom(); |
| 162 | 162 | $backupCodes = array(); |
@@ -19,6 +19,6 @@ |
||
| 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 |