Passed
Pull Request — main (#557)
by Johan
10:16 queued 05:20
created
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Query/IdentityQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Query/RaListingQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Query/RaaQuery.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/RecoveryToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/RaCandidate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/RaListing.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -120,13 +120,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/RaSecondFactor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
Surfnet/StepupMiddleware/ApiBundle/Identity/Service/SecondFactorService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
StepupMiddleware/ApiBundle/Identity/Value/VerifiedTokenInformation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,12 +40,12 @@
 block discarded – undo
40 40
     public static function fromEntity(VerifiedSecondFactor $token, Identity $identity): self
41 41
     {
42 42
         return new self(
43
-            (string)$identity->email,
43
+            (string) $identity->email,
44 44
             $token->id,
45 45
             $token->type,
46
-            (string)$identity->commonName,
46
+            (string) $identity->commonName,
47 47
             $token->registrationRequestedAt,
48
-            (string)$identity->preferredLocale,
48
+            (string) $identity->preferredLocale,
49 49
             $identity->institution,
50 50
             $token->registrationCode,
51 51
         );
Please login to merge, or discard this patch.