@@ -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) { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | $body = json_decode($request->getContent(), 1); |
169 | 169 | |
170 | - $chkAuth = $this->getDoctrine() |
|
170 | + $chkAuth = $this->getDoctrine() |
|
171 | 171 | ->getManager() |
172 | 172 | ->getRepository('LoginCidadaoCoreBundle:Authorization') |
173 | 173 | ->createQueryBuilder('a') |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | $rowR[$idx] = array('person_id' => $row['person_id'], 'error' => 'missing authorization or configuration'); |
192 | 192 | continue; |
193 | 193 | } |
194 | - $not = new Notification(); |
|
194 | + $not = new Notification(); |
|
195 | 195 | $not->setPerson($res[0]); |
196 | 196 | $not->setConfigNotCli($res[1]) |
197 | 197 | ->setIcon(isset($row['icon']) && $row['icon'] ? $row['icon'] |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | ->findOneBy(array( |
243 | 243 | 'token' => $token->getToken() |
244 | 244 | )); |
245 | - $client = $accessToken->getClient(); |
|
245 | + $client = $accessToken->getClient(); |
|
246 | 246 | |
247 | 247 | $people = $this->getDoctrine()->getRepository('LoginCidadaoCoreBundle:Person'); |
248 | 248 | $person = $people->find($id); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | private function loopInsert($dir, $fileName, $query, $prepareFunction, $debug = false) |
98 | 98 | { |
99 | 99 | $entries = 0; |
100 | - $file = $dir . DIRECTORY_SEPARATOR . $fileName; |
|
100 | + $file = $dir.DIRECTORY_SEPARATOR.$fileName; |
|
101 | 101 | if (($handle = fopen($file, 'r')) !== false) { |
102 | 102 | while (($row = fgetcsv($handle)) !== false) { |
103 | 103 | $data = $prepareFunction($row); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | if (!($this->getDefaultOAuthClient() instanceof Client)) { |
118 | 118 | $uid = $this->getContainer()->getParameter('oauth_default_client.uid'); |
119 | 119 | $pictureName = 'client_logo.png'; |
120 | - $picture = new File($dir . DIRECTORY_SEPARATOR . $pictureName); |
|
120 | + $picture = new File($dir.DIRECTORY_SEPARATOR.$pictureName); |
|
121 | 121 | $domain = $this->getContainer()->getParameter('site_domain'); |
122 | 122 | $url = "//$domain"; |
123 | 123 | $grantTypes = array( |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | $result = array(); |
24 | 24 | if (is_numeric($id)) { |
25 | 25 | $result = $this->getDoctrine() |
26 | - ->getManager () |
|
26 | + ->getManager() |
|
27 | 27 | ->getRepository('LoginCidadaoCoreBundle:State') |
28 | 28 | ->createQueryBuilder('u') |
29 | 29 | ->select('u.id, u.name') |
30 | 30 | ->where('u.country = :country') |
31 | - ->andWhere('u.reviewed = ' . State::REVIEWED_OK) |
|
31 | + ->andWhere('u.reviewed = '.State::REVIEWED_OK) |
|
32 | 32 | ->setParameters(array('country' => new Country($id))) |
33 | 33 | ->orderBy('u.name', 'ASC') |
34 | 34 | ->getQuery() |
@@ -46,12 +46,12 @@ discard block |
||
46 | 46 | $result = array(); |
47 | 47 | if (is_numeric($id)) { |
48 | 48 | $result = $this->getDoctrine() |
49 | - ->getManager () |
|
49 | + ->getManager() |
|
50 | 50 | ->getRepository('LoginCidadaoCoreBundle:City') |
51 | 51 | ->createQueryBuilder('u') |
52 | 52 | ->select('u.id, u.name') |
53 | 53 | ->where('u.state = :state') |
54 | - ->andWhere('u.reviewed = ' . City::REVIEWED_OK) |
|
54 | + ->andWhere('u.reviewed = '.City::REVIEWED_OK) |
|
55 | 55 | ->setParameters(array('state' => new State($id))) |
56 | 56 | ->orderBy('u.name', 'ASC') |
57 | 57 | ->getQuery() |
@@ -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()) |
@@ -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); |
@@ -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( |