@@ -33,11 +33,11 @@ |
||
| 33 | 33 | $person = $this->getUser(); |
| 34 | 34 | $serializer = $this->get('jms_serializer'); |
| 35 | 35 | return $serializer->serialize($person, 'json', |
| 36 | - SerializationContext::create()->setGroups($scope)); |
|
| 36 | + SerializationContext::create()->setGroups($scope)); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | protected function getClientScope(PersonInterface $user, |
| 40 | - ClientInterface $client = null) |
|
| 40 | + ClientInterface $client = null) |
|
| 41 | 41 | { |
| 42 | 42 | if ($client === null) { |
| 43 | 43 | $client = $this->getClient(); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @return array |
| 53 | 53 | */ |
| 54 | 54 | public function getNotificationsAction(Request $request, |
| 55 | - ParamFetcherInterface $paramFetcher) |
|
| 55 | + ParamFetcherInterface $paramFetcher) |
|
| 56 | 56 | { |
| 57 | 57 | $offset = $paramFetcher->get('offset'); |
| 58 | 58 | $offset = null == $offset ? 0 : $offset; |
@@ -64,13 +64,13 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | if (array_search('get_all_notifications', $scopes) === false) { |
| 66 | 66 | $notifications = $this->getNotificationHandler()->getAllFromPersonByClient($person, |
| 67 | - $client, |
|
| 68 | - $limit, |
|
| 69 | - $offset); |
|
| 67 | + $client, |
|
| 68 | + $limit, |
|
| 69 | + $offset); |
|
| 70 | 70 | } else { |
| 71 | 71 | $notifications = $this->getNotificationHandler()->getAllFromPerson($person, |
| 72 | - $limit, |
|
| 73 | - $offset); |
|
| 72 | + $limit, |
|
| 73 | + $offset); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | return $this->renderWithContext($notifications); |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | $user = $token->getUser(); |
| 193 | 193 | if ($user instanceof ClientUser) { |
| 194 | 194 | return $this->validateNotificationAsClient($user->getClient(), |
| 195 | - $request); |
|
| 195 | + $request); |
|
| 196 | 196 | } elseif ($user instanceof PersonInterface) { |
| 197 | 197 | return $this->validateNotificationAsPerson($user, $request); |
| 198 | 198 | } else { |
@@ -173,10 +173,10 @@ |
||
| 173 | 173 | ->createQueryBuilder('a') |
| 174 | 174 | ->select('cnc, p') |
| 175 | 175 | ->join('LoginCidadaoCoreBundle:Person', 'p', 'WITH', |
| 176 | - 'a.person = p') |
|
| 176 | + 'a.person = p') |
|
| 177 | 177 | ->join('LoginCidadaoOAuthBundle:Client', 'c', 'WITH', 'a.client = c') |
| 178 | 178 | ->join('LoginCidadaoCoreBundle:ConfigNotCli', 'cnc', 'WITH', |
| 179 | - 'cnc.client = c') |
|
| 179 | + 'cnc.client = c') |
|
| 180 | 180 | ->where('c.id = '.$client->getId().' and p.id = :person_id and cnc.id = :config_id') |
| 181 | 181 | ->getQuery(); |
| 182 | 182 | $rowR = array(); |
@@ -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 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @return ActionLog |
| 91 | 91 | */ |
| 92 | 92 | private function initLog(Request $request, $actionType, $controllerAction, |
| 93 | - $auditUsername) |
|
| 93 | + $auditUsername) |
|
| 94 | 94 | { |
| 95 | 95 | $controller = get_class($controllerAction[0]); |
| 96 | 96 | $action = $controllerAction[1]; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | public function registerLogin(Request $request, PersonInterface $person, |
| 127 | - array $controllerAction) |
|
| 127 | + array $controllerAction) |
|
| 128 | 128 | { |
| 129 | 129 | $auditUsername = $this->auditConfig->getCurrentUsername(); |
| 130 | 130 | $actionType = ActionLog::TYPE_LOGIN; |
@@ -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 |
@@ -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 | |