@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | class RaCandidateQuery extends AbstractQuery |
| 25 | 25 | { |
| 26 | - public string|Institution|null $institution = null; |
|
| 26 | + public string | Institution | null $institution = null; |
|
| 27 | 27 | |
| 28 | 28 | public ?string $commonName = null; |
| 29 | 29 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | public array $secondFactorTypes = []; |
| 36 | 36 | |
| 37 | - public string|Institution|null $raInstitution = null; |
|
| 37 | + public string | Institution | null $raInstitution = null; |
|
| 38 | 38 | |
| 39 | 39 | public InstitutionAuthorizationContextInterface $authorizationContext; |
| 40 | 40 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * @var string|Institution |
| 37 | 37 | */ |
| 38 | - public string|Institution $institution; |
|
| 38 | + public string | Institution $institution; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @var string |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | class RaListingQuery extends AbstractQuery |
| 26 | 26 | { |
| 27 | - public string|Institution|null $institution = null; |
|
| 27 | + public string | Institution | null $institution = null; |
|
| 28 | 28 | |
| 29 | 29 | public ?IdentityId $identityId = null; |
| 30 | 30 | |
@@ -25,10 +25,10 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * @var string|Institution |
| 27 | 27 | */ |
| 28 | - public string|Institution $institution; |
|
| 28 | + public string | Institution $institution; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @var string |
| 32 | 32 | */ |
| 33 | - public string|null $nameId; |
|
| 33 | + public string | null $nameId; |
|
| 34 | 34 | } |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | return [ |
| 85 | 85 | 'id' => $this->id, |
| 86 | 86 | 'type' => $this->type, |
| 87 | - 'status' => (string)$this->status, |
|
| 87 | + 'status' => (string) $this->status, |
|
| 88 | 88 | 'recovery_method_identifier' => $this->recoveryMethodIdentifier, |
| 89 | 89 | 'identity_id' => $this->identityId, |
| 90 | 90 | 'name' => $this->name, |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | Institution $raInstitution, |
| 87 | 87 | ): self { |
| 88 | 88 | $candidate = new self(); |
| 89 | - $candidate->identityId = (string)$identityId; |
|
| 89 | + $candidate->identityId = (string) $identityId; |
|
| 90 | 90 | $candidate->institution = $institution; |
| 91 | 91 | $candidate->nameId = $nameId; |
| 92 | 92 | $candidate->commonName = $commonName; |
@@ -120,13 +120,13 @@ |
||
| 120 | 120 | { |
| 121 | 121 | return [ |
| 122 | 122 | 'identity_id' => $this->identityId, |
| 123 | - 'institution' => (string)$this->institution, |
|
| 124 | - 'ra_institution' => (string)$this->raInstitution, |
|
| 125 | - 'common_name' => (string)$this->commonName, |
|
| 126 | - 'email' => (string)$this->email, |
|
| 127 | - 'role' => (string)$this->role, |
|
| 128 | - 'location' => (string)$this->location, |
|
| 129 | - 'contact_information' => (string)$this->contactInformation, |
|
| 123 | + 'institution' => (string) $this->institution, |
|
| 124 | + 'ra_institution' => (string) $this->raInstitution, |
|
| 125 | + 'common_name' => (string) $this->commonName, |
|
| 126 | + 'email' => (string) $this->email, |
|
| 127 | + 'role' => (string) $this->role, |
|
| 128 | + 'location' => (string) $this->location, |
|
| 129 | + 'contact_information' => (string) $this->contactInformation, |
|
| 130 | 130 | ]; |
| 131 | 131 | } |
| 132 | 132 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | 'id' => $this->id, |
| 81 | 81 | 'type' => $this->type, |
| 82 | 82 | 'second_factor_id' => $this->secondFactorId, |
| 83 | - 'status' => (string)$this->status, |
|
| 83 | + 'status' => (string) $this->status, |
|
| 84 | 84 | 'identity_id' => $this->identityId, |
| 85 | 85 | 'name' => $this->name, |
| 86 | 86 | 'document_number' => $this->documentNumber, |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | |
| 104 | 104 | public function hasVettedByIdentity(IdentityId $id): bool |
| 105 | 105 | { |
| 106 | - $vettedSecondFactors = $this->vettedRepository->findBy(['identityId' => (string)$id]); |
|
| 106 | + $vettedSecondFactors = $this->vettedRepository->findBy(['identityId' => (string) $id]); |
|
| 107 | 107 | return $vettedSecondFactors !== []; |
| 108 | 108 | } |
| 109 | 109 | } |