@@ -339,6 +339,10 @@ discard block |
||
| 339 | 339 | $formBuilder->add('idcard', 'lc_idcard_form', array('label' => false)); |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | + /** |
|
| 343 | + * @param string $field |
|
| 344 | + * @param string $type |
|
| 345 | + */ |
|
| 342 | 346 | private function addPersonField(FormBuilderInterface $formBuilder, |
| 343 | 347 | Person $person, $field, $type = null, |
| 344 | 348 | $options = array()) |
@@ -389,6 +393,9 @@ discard block |
||
| 389 | 393 | return; |
| 390 | 394 | } |
| 391 | 395 | |
| 396 | + /** |
|
| 397 | + * @return null|City |
|
| 398 | + */ |
|
| 392 | 399 | private function getCity(Request $request) |
| 393 | 400 | { |
| 394 | 401 | $id = $request->get('city'); |
@@ -399,6 +406,9 @@ discard block |
||
| 399 | 406 | return $repo->find($id); |
| 400 | 407 | } |
| 401 | 408 | |
| 409 | + /** |
|
| 410 | + * @return null|State |
|
| 411 | + */ |
|
| 402 | 412 | private function getState(Request $request) |
| 403 | 413 | { |
| 404 | 414 | $id = $request->get('state'); |
@@ -409,6 +419,9 @@ discard block |
||
| 409 | 419 | return $repo->find($id); |
| 410 | 420 | } |
| 411 | 421 | |
| 422 | + /** |
|
| 423 | + * @return null|Country |
|
| 424 | + */ |
|
| 412 | 425 | private function getCountry(Request $request) |
| 413 | 426 | { |
| 414 | 427 | $id = $request->get('country'); |
@@ -151,6 +151,9 @@ |
||
| 151 | 151 | return compact('data'); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param integer $days |
|
| 156 | + */ |
|
| 154 | 157 | private function getNewUsersByService($days, $clientId = null, |
| 155 | 158 | $format = 'html') |
| 156 | 159 | { |
@@ -126,6 +126,9 @@ discard block |
||
| 126 | 126 | return $this->getUser(); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param \Symfony\Component\Form\Form $form |
|
| 131 | + */ |
|
| 129 | 132 | protected function enable2FA(PersonInterface $person, $form) |
| 130 | 133 | { |
| 131 | 134 | $em = $this->getDoctrine()->getManager(); |
@@ -134,6 +137,9 @@ discard block |
||
| 134 | 137 | $em->flush(); |
| 135 | 138 | } |
| 136 | 139 | |
| 140 | + /** |
|
| 141 | + * @param \Symfony\Component\Form\Form $form |
|
| 142 | + */ |
|
| 137 | 143 | protected function disable2FA(BackupCodeInterface $person, $form) |
| 138 | 144 | { |
| 139 | 145 | $em = $this->getDoctrine()->getManager(); |
@@ -74,6 +74,9 @@ |
||
| 74 | 74 | return $this->ip; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param \DateTime $var |
|
| 79 | + */ |
|
| 77 | 80 | public function setIDhacess($var) |
| 78 | 81 | { |
| 79 | 82 | $this->dhacess = $var; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * Set text |
| 51 | 51 | * |
| 52 | 52 | * @param string $text |
| 53 | - * @return Notification |
|
| 53 | + * @return ClientSuggestion |
|
| 54 | 54 | */ |
| 55 | 55 | public function setText($text) |
| 56 | 56 | { |
@@ -135,7 +135,6 @@ |
||
| 135 | 135 | /** |
| 136 | 136 | * Set Acronym |
| 137 | 137 | * |
| 138 | - * @param string $name |
|
| 139 | 138 | * @return State |
| 140 | 139 | */ |
| 141 | 140 | public function setAcronym($var) |
@@ -157,6 +157,9 @@ |
||
| 157 | 157 | ->getRepository('LoginCidadaoCoreBundle:InvalidateSessionRequest'); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $name |
|
| 162 | + */ |
|
| 160 | 163 | private function redirectRoute($name, $parameters = array()) |
| 161 | 164 | { |
| 162 | 165 | $url = $this->router->generate($name, $parameters); |
@@ -58,6 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | + * @param NotificationInterface $notification |
|
| 61 | 62 | * @return PersonNotificationOption |
| 62 | 63 | */ |
| 63 | 64 | private function getSettings($notification) |
@@ -151,6 +151,10 @@ |
||
| 151 | 151 | return $translated; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | + /** |
|
| 155 | + * @param SecurityHelper $securityHelper |
|
| 156 | + * @param \Symfony\Component\Security\Core\SecurityContext $security |
|
| 157 | + */ |
|
| 154 | 158 | public static function filterRoles(PersonInterface $person, |
| 155 | 159 | PersonInterface $loggedUser, |
| 156 | 160 | FormInterface $form, array $roles, |