@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * (optional) If a secret is required, check that they've given the right one. |
| 32 | 32 | * |
| 33 | 33 | * @return |
| 34 | - * TRUE if the client credentials are valid, and MUST return FALSE if it isn't. |
|
| 34 | + boolean TRUE if the client credentials are valid, and MUST return FALSE if it isn't. |
|
| 35 | 35 | * @endcode |
| 36 | 36 | * |
| 37 | 37 | * @see http://tools.ietf.org/html/rfc6749#section-3.1 |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | * Client identifier to be check with. |
| 103 | 103 | * |
| 104 | 104 | * @return |
| 105 | - * TRUE if the client is public, and FALSE if it isn't. |
|
| 105 | + boolean TRUE if the client is public, and FALSE if it isn't. |
|
| 106 | 106 | * @endcode |
| 107 | 107 | * |
| 108 | 108 | * @see http://tools.ietf.org/html/rfc6749#section-2.3 |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * Get the scope associated with this client |
| 130 | 130 | * |
| 131 | 131 | * @return |
| 132 | - * STRING the space-delineated scope list for the specified client_id |
|
| 132 | + false|string STRING the space-delineated scope list for the specified client_id |
|
| 133 | 133 | */ |
| 134 | 134 | public function getClientScope($client_id) |
| 135 | 135 | { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Currently only checks if the value is numeric. |
| 15 | 15 | * |
| 16 | - * @param string $cep |
|
| 17 | 16 | * @return boolean |
| 18 | 17 | */ |
| 19 | 18 | public static function isUsernameValid($var) |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | |
| 29 | 29 | public function validate($value, Constraint $constraint) |
| 30 | 30 | { |
| 31 | - if (! isset($value) || $value === null || ! strlen(trim($value))) { |
|
| 31 | + if (!isset($value) || $value === null || !strlen(trim($value))) { |
|
| 32 | 32 | return; |
| 33 | 33 | } |
| 34 | - if (! self::isUsernameValid($value)) { |
|
| 34 | + if (!self::isUsernameValid($value)) { |
|
| 35 | 35 | $this->context->addViolation($constraint->message); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | * @return \Doctrine\ORM\QueryBuilder |
| 82 | 82 | */ |
| 83 | 83 | private function getImpersonatonsWithoutReportsQuery($limit = null, |
| 84 | - PersonInterface $impersonator |
|
| 84 | + PersonInterface $impersonator |
|
| 85 | 85 | = null) |
| 86 | 86 | { |
| 87 | 87 | $query = $this->createQueryBuilder('l') |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | foreach ($this->reader->getMethodAnnotations($method) as $annotation) { |
| 37 | 37 | if ($annotation instanceof Loggable) { |
| 38 | 38 | $this->logger->logActivity($event->getRequest(), $annotation, |
| 39 | - $controller); |
|
| 39 | + $controller); |
|
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -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); |
@@ -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()) |