@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | { |
25 | 25 | $query = $this->getDoctrine()->getRepository('LoginCidadaoCoreBundle:Country') |
26 | 26 | ->createQueryBuilder('cty') |
27 | - ->where('cty.reviewed = ' . Country::REVIEWED_OK) |
|
27 | + ->where('cty.reviewed = '.Country::REVIEWED_OK) |
|
28 | 28 | ->orderBy('cty.id', 'ASC'); |
29 | 29 | return $this->handleView($this->view($query->getQuery()->getResult(Query::HYDRATE_ARRAY))); |
30 | 30 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | { |
39 | 39 | $query = $this->getDoctrine()->getRepository('LoginCidadaoCoreBundle:State') |
40 | 40 | ->createQueryBuilder('state') |
41 | - ->where('state.reviewed = ' . Country::REVIEWED_OK); |
|
41 | + ->where('state.reviewed = '.Country::REVIEWED_OK); |
|
42 | 42 | $country = $request->get('country_id'); |
43 | 43 | if ($country) { |
44 | 44 | $query->join('LoginCidadaoCoreBundle:Country', 'cty', 'WITH', 'state.country = cty'); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | { |
59 | 59 | $query = $this->getDoctrine()->getRepository('LoginCidadaoCoreBundle:City') |
60 | 60 | ->createQueryBuilder('c') |
61 | - ->where('c.reviewed = ' . Country::REVIEWED_OK); |
|
61 | + ->where('c.reviewed = '.Country::REVIEWED_OK); |
|
62 | 62 | $country = $request->get('country_id'); |
63 | 63 | $state = $request->get('state_id'); |
64 | 64 | if ($country || $state) { |
@@ -135,7 +135,7 @@ |
||
135 | 135 | $msg['title'] = str_repeat($input, $r); |
136 | 136 | $msg['shorttext'] = str_repeat($input, $r); |
137 | 137 | } |
138 | - $not = new Notification(); |
|
138 | + $not = new Notification(); |
|
139 | 139 | $not->setPerson($person); |
140 | 140 | $not->setCategory($category); |
141 | 141 | $not->setIcon($category->getDefaultIcon()); |
@@ -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()) |
@@ -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() |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 'client' => $client, |
80 | 80 | 'user' => $user |
81 | 81 | )); |
82 | - $refreshTokens = $em->getRepository('LoginCidadaoOAuthBundle:RefreshToken') |
|
82 | + $refreshTokens = $em->getRepository('LoginCidadaoOAuthBundle:RefreshToken') |
|
83 | 83 | ->findBy(array( |
84 | 84 | 'client' => $client, |
85 | 85 | 'user' => $user |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | public function registrationCpfAction(Request $request) |
217 | 217 | { |
218 | 218 | $person = $this->getUser(); |
219 | - if (is_numeric($cpf = preg_replace('/[^0-9]/', '', |
|
219 | + if (is_numeric($cpf = preg_replace('/[^0-9]/', '', |
|
220 | 220 | $request->get('cpf'))) && strlen($cpf) == 11) { |
221 | 221 | $person->setCpf($cpf); |
222 | 222 | } |
@@ -395,8 +395,8 @@ discard block |
||
395 | 395 | { |
396 | 396 | $form = $this->createForm(new DocRgFormType()); |
397 | 397 | $rg = null; |
398 | - if (($id = $request->get('id')) || (($data = $request->get($form->getName())) |
|
399 | - && ($id = $data['id']))) { |
|
398 | + if (($id = $request->get('id')) || (($data = $request->get($form->getName())) |
|
399 | + && ($id = $data['id']))) { |
|
400 | 400 | $rg = $this->getDoctrine() |
401 | 401 | ->getManager() |
402 | 402 | ->getRepository('LoginCidadaoCoreBundle:IdCard')->findOneBy(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 |
@@ -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. |