@@ -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 | |
@@ -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 |
@@ -28,6 +28,6 @@ |
||
| 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 |
@@ -22,6 +22,6 @@ |
||
| 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 |
@@ -12,7 +12,7 @@ |
||
| 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. |
@@ -15,9 +15,9 @@ |
||
| 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') |
@@ -13,7 +13,7 @@ discard block |
||
| 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 |
||
| 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'); |
@@ -15,7 +15,7 @@ |
||
| 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') |
@@ -47,10 +47,10 @@ |
||
| 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 | } |
@@ -55,11 +55,11 @@ |
||
| 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)); |
@@ -55,7 +55,7 @@ |
||
| 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 | |