Passed
Push — feature/main-authz-bugfix ( e03212 )
by Michiel
15:54 queued 09:38
created
StepupMiddleware/ApiBundle/Identity/Repository/RaListingRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             ->where('r.identityId = :identityId')
84 84
             ->andWhere('r.raInstitution = :raInstitution')
85 85
             ->setParameter('identityId', $identityId)
86
-            ->setParameter('raInstitution', (string)$raInstitution)
86
+            ->setParameter('raInstitution', (string) $raInstitution)
87 87
             ->orderBy('r.raInstitution');
88 88
 
89 89
         // Modify query to filter on authorization:
Please login to merge, or discard this patch.
ApiBundle/Identity/Repository/InstitutionListingRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         $existsQuery = $this->createQueryBuilder('i')
46 46
             ->where('i.institution = :institution')
47
-            ->setParameter('institution', (string)$institution)
47
+            ->setParameter('institution', (string) $institution)
48 48
             ->getQuery()
49 49
             ->getOneOrNullResult();
50 50
 
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/AuditLogEntry.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -189,13 +189,13 @@
 block discarded – undo
189 189
     {
190 190
         return [
191 191
             'actor_id' => $this->actorId,
192
-            'actor_institution' => $this->actorInstitution ? (string)$this->actorInstitution : null,
192
+            'actor_institution' => $this->actorInstitution ? (string) $this->actorInstitution : null,
193 193
             'actor_common_name' => $this->actorCommonName,
194 194
             'identity_id' => $this->identityId,
195
-            'identity_institution' => (string)$this->identityInstitution,
196
-            'ra_institution' => (string)$this->raInstitution,
195
+            'identity_institution' => (string) $this->identityInstitution,
196
+            'ra_institution' => (string) $this->raInstitution,
197 197
             'second_factor_id' => $this->secondFactorId,
198
-            'second_factor_type' => $this->secondFactorType ? (string)$this->secondFactorType : null,
198
+            'second_factor_type' => $this->secondFactorType ? (string) $this->secondFactorType : null,
199 199
             'second_factor_identifier' => $this->secondFactorIdentifier,
200 200
             'recovery_token_type' => $this->recoveryTokenType,
201 201
             'recovery_token_identifier' => $this->recoveryTokenIdentifier,
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Identity/Service/RaListingService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $raListings = $this->raListingRepository->listRasFor($institution);
84 84
 
85 85
         return $raListings
86
-            ->map(function (RaListing $raListing) {
86
+            ->map(function(RaListing $raListing) {
87 87
                 return RegistrationAuthorityCredentials::fromRaListing($raListing);
88 88
             })
89 89
             ->toArray();
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Identity/Service/AbstractSearchService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
67 67
         $results = $doctrineQuery->getArrayResult();
68 68
         foreach ($results as $options) {
69 69
             foreach ($options as $key => $value) {
70
-                $val = (string)$value;
71
-                $filters[$key][$val] = (string)$val;
70
+                $val = (string) $value;
71
+                $filters[$key][$val] = (string) $val;
72 72
             }
73 73
         }
74 74
 
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Identity/Projector/RecoveryTokenProjector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,14 +77,14 @@
 block discarded – undo
77 77
 
78 78
     public function applyCompliedWithRecoveryCodeRevocationEvent(CompliedWithRecoveryCodeRevocationEvent $event): void
79 79
     {
80
-        $token = $this->recoveryTokenRepository->find((string)$event->recoveryTokenId);
80
+        $token = $this->recoveryTokenRepository->find((string) $event->recoveryTokenId);
81 81
         $token->status = RecoveryTokenStatus::revoked();
82 82
         $this->recoveryTokenRepository->save($token);
83 83
     }
84 84
 
85 85
     public function applyRecoveryTokenRevokedEvent(RecoveryTokenRevokedEvent $event): void
86 86
     {
87
-        $token = $this->recoveryTokenRepository->find((string)$event->recoveryTokenId);
87
+        $token = $this->recoveryTokenRepository->find((string) $event->recoveryTokenId);
88 88
         $token->status = RecoveryTokenStatus::revoked();
89 89
         $this->recoveryTokenRepository->save($token);
90 90
     }
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Controller/IdentityController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $query->nameId = $request->get('NameID');
75 75
         $query->commonName = $request->get('commonName');
76 76
         $query->email = $request->get('email');
77
-        $query->pageNumber = (int)$request->get('p', 1);
77
+        $query->pageNumber = (int) $request->get('p', 1);
78 78
 
79 79
         $paginator = $this->identityService->search($query);
80 80
 
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Controller/RaSecondFactorController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $actorId = new IdentityId($request->get('actorId'));
82 82
 
83 83
         $query = new RaSecondFactorQuery();
84
-        $query->pageNumber = (int)$request->get('p', 1);
84
+        $query->pageNumber = (int) $request->get('p', 1);
85 85
         $query->name = $request->get('name');
86 86
         $query->type = $request->get('type');
87 87
         $query->secondFactorId = $request->get('secondFactorId');
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Controller/RaListingController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             $query->raInstitution = $request->get('raInstitution');
112 112
         }
113 113
 
114
-        $query->pageNumber = (int)$request->get('p', 1);
114
+        $query->pageNumber = (int) $request->get('p', 1);
115 115
         $query->orderBy = $request->get('orderBy');
116 116
         $query->orderDirection = $request->get('orderDirection');
117 117
         $query->authorizationContext = $this->authorizationService->buildInstitutionAuthorizationContext(
Please login to merge, or discard this patch.