@@ -1230,7 +1230,7 @@ |
||
| 1230 | 1230 | ) { |
| 1231 | 1231 | $people = $em->getRepository('LoginCidadaoCoreBundle:Person'); |
| 1232 | 1232 | |
| 1233 | - return function () use ($id, $people, $em, $updatedAt, $lastUpdatedAt) { |
|
| 1233 | + return function() use ($id, $people, $em, $updatedAt, $lastUpdatedAt) { |
|
| 1234 | 1234 | $em->clear(); |
| 1235 | 1235 | $person = $people->find($id); |
| 1236 | 1236 | if (!$person->getUpdatedAt()) { |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use LoginCidadao\OpenIDBundle\Form\EndSessionForm; |
| 19 | 19 | use LoginCidadao\OpenIDBundle\Service\SubjectIdentifierService; |
| 20 | 20 | use LoginCidadao\OpenIDBundle\Storage\PublicKey; |
| 21 | -use Symfony\Component\HttpFoundation\RedirectResponse; |
|
| 22 | 21 | use Symfony\Component\HttpFoundation\Request; |
| 23 | 22 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 24 | 23 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | |
| 73 | 73 | $result = array_unique( |
| 74 | 74 | array_map( |
| 75 | - function ($value) { |
|
| 75 | + function($value) { |
|
| 76 | 76 | if ($value === null) { |
| 77 | 77 | return; |
| 78 | 78 | } |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace LoginCidadao\NotificationBundle\Model; |
| 4 | 4 | |
| 5 | 5 | use LoginCidadao\NotificationBundle\Entity\Placeholder; |
| 6 | -use Doctrine\Common\Collections\ArrayCollection; |
|
| 7 | 6 | use Doctrine\ORM\EntityManager; |
| 8 | 7 | |
| 9 | 8 | class BroadcastPlaceholder |
@@ -26,7 +26,6 @@ |
||
| 26 | 26 | use LoginCidadao\OAuthBundle\Entity\Client; |
| 27 | 27 | use LoginCidadao\CoreBundle\DynamicFormEvents; |
| 28 | 28 | use Symfony\Component\HttpFoundation\Response; |
| 29 | -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
|
| 30 | 29 | |
| 31 | 30 | class DynamicFormController extends Controller |
| 32 | 31 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $authorizedScope = $person->getClientScope($client); |
| 50 | 50 | $requestedScope = explode(' ', $request->get('scope', null)); |
| 51 | 51 | |
| 52 | - $scope = $requestedScope;// $this->intersectScopes($authorizedScope, $requestedScope); |
|
| 52 | + $scope = $requestedScope; // $this->intersectScopes($authorizedScope, $requestedScope); |
|
| 53 | 53 | |
| 54 | 54 | /** @var IntentManager $intentManager */ |
| 55 | 55 | $intentManager = $this->get('lc.intent.manager'); |
@@ -8,11 +8,8 @@ |
||
| 8 | 8 | use LoginCidadao\CoreBundle\Model\Task; |
| 9 | 9 | use LoginCidadao\CoreBundle\Service\IntentManager; |
| 10 | 10 | use LoginCidadao\CoreBundle\Service\TasksManager; |
| 11 | -use Symfony\Component\EventDispatcher\Event; |
|
| 12 | 11 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 13 | -use Symfony\Component\HttpFoundation\Session\SessionInterface; |
|
| 14 | 12 | use Symfony\Component\HttpKernel\HttpKernel; |
| 15 | -use Symfony\Component\HttpKernel\HttpKernelInterface; |
|
| 16 | 13 | use Symfony\Component\Routing\RouterInterface; |
| 17 | 14 | use Symfony\Component\HttpFoundation\Session\Session; |
| 18 | 15 | use Symfony\Component\Translation\TranslatorInterface; |
@@ -37,14 +37,14 @@ |
||
| 37 | 37 | |
| 38 | 38 | usort( |
| 39 | 39 | $tasks, |
| 40 | - function (Task $a, Task $b) { |
|
| 40 | + function(Task $a, Task $b) { |
|
| 41 | 41 | return $a->getPriority() < $b->getPriority(); |
| 42 | 42 | } |
| 43 | 43 | ); |
| 44 | 44 | |
| 45 | 45 | $filtered = array_filter( |
| 46 | 46 | $tasks, |
| 47 | - function (Task $task) use ($routeName) { |
|
| 47 | + function(Task $task) use ($routeName) { |
|
| 48 | 48 | if ($task->isMandatory() || $routeName === null) { |
| 49 | 49 | return true; |
| 50 | 50 | } |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use LoginCidadao\OpenIDBundle\Form\EndSessionForm; |
| 19 | 19 | use LoginCidadao\OpenIDBundle\Service\SubjectIdentifierService; |
| 20 | 20 | use LoginCidadao\OpenIDBundle\Storage\PublicKey; |
| 21 | -use Symfony\Component\HttpFoundation\RedirectResponse; |
|
| 22 | 21 | use Symfony\Component\HttpFoundation\Request; |
| 23 | 22 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 24 | 23 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $securityHelper = $this->securityHelper; |
| 96 | 96 | $builder->addEventListener( |
| 97 | 97 | FormEvents::PRE_SET_DATA, |
| 98 | - function (FormEvent $event) use ($user, $allRoles, $securityHelper) { |
|
| 98 | + function(FormEvent $event) use ($user, $allRoles, $securityHelper) { |
|
| 99 | 99 | $person = $event->getData(); |
| 100 | 100 | $form = PersonResumeFormType::populateCountryStateCity( |
| 101 | 101 | $person, |