Completed
Pull Request — master (#120)
by Lucas
04:28
created
src/LoginCidadao/CoreBundle/Entity/Person.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1230,7 +1230,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Controller/SessionManagementController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/LoginCidadao/OpenIDBundle/Entity/ClientMetadata.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Controller/DynamicFormController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/EventListener/LoggedInUserListener.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -8,11 +8,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Service/TasksManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Controller/DefaultController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/LoginCidadao/CoreBundle/Form/Type/PersonResumeFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.