@@ -83,7 +83,7 @@ |
||
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: |
@@ -44,7 +44,7 @@ |
||
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 |
@@ -189,13 +189,13 @@ |
||
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, |
@@ -83,7 +83,7 @@ |
||
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(); |
@@ -67,8 +67,8 @@ |
||
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 |
@@ -77,14 +77,14 @@ |
||
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 | } |
@@ -74,7 +74,7 @@ |
||
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 |
@@ -81,7 +81,7 @@ |
||
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'); |
@@ -111,7 +111,7 @@ |
||
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( |