Passed
Pull Request — main (#546)
by Pieter van der
08:01 queued 02:27
created
src/Surfnet/Stepup/Identity/Event/RegistrationAuthorityRetractedEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,9 +77,9 @@
 block discarded – undo
77 77
     public function serialize(): array
78 78
     {
79 79
         return [
80
-            'identity_id' => (string)$this->identityId,
81
-            'identity_institution' => (string)$this->identityInstitution,
82
-            'name_id' => (string)$this->nameId,
80
+            'identity_id' => (string) $this->identityId,
81
+            'identity_institution' => (string) $this->identityInstitution,
82
+            'name_id' => (string) $this->nameId,
83 83
         ];
84 84
     }
85 85
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/IdentityRenamedEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
72 72
     public function serialize(): array
73 73
     {
74 74
         return [
75
-            'id' => (string)$this->identityId,
76
-            'institution' => (string)$this->identityInstitution,
75
+            'id' => (string) $this->identityId,
76
+            'institution' => (string) $this->identityInstitution,
77 77
         ];
78 78
     }
79 79
 
Please login to merge, or discard this patch.
Stepup/Identity/Event/SecondFactorVettedWithoutTokenProofOfPossession.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,12 +123,12 @@
 block discarded – undo
123 123
     public function serialize(): array
124 124
     {
125 125
         return [
126
-            'identity_id' => (string)$this->identityId,
127
-            'name_id' => (string)$this->nameId,
128
-            'identity_institution' => (string)$this->identityInstitution,
129
-            'second_factor_id' => (string)$this->secondFactorId,
130
-            'second_factor_type' => (string)$this->secondFactorType,
131
-            'preferred_locale' => (string)$this->preferredLocale,
126
+            'identity_id' => (string) $this->identityId,
127
+            'name_id' => (string) $this->nameId,
128
+            'identity_institution' => (string) $this->identityInstitution,
129
+            'second_factor_id' => (string) $this->secondFactorId,
130
+            'second_factor_type' => (string) $this->secondFactorType,
131
+            'preferred_locale' => (string) $this->preferredLocale,
132 132
         ];
133 133
     }
134 134
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/LocalePreferenceExpressedEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@
 block discarded – undo
71 71
     public function serialize(): array
72 72
     {
73 73
         return [
74
-            'id' => (string)$this->identityId,
75
-            'institution' => (string)$this->identityInstitution,
76
-            'preferred_locale' => (string)$this->preferredLocale,
74
+            'id' => (string) $this->identityId,
75
+            'institution' => (string) $this->identityInstitution,
76
+            'preferred_locale' => (string) $this->preferredLocale,
77 77
         ];
78 78
     }
79 79
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/GssfPossessionProvenAndVerifiedEvent.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $metadata->identityId = $this->identityId;
89 89
         $metadata->identityInstitution = $this->identityInstitution;
90 90
         $metadata->secondFactorId = $this->secondFactorId;
91
-        $metadata->secondFactorType = new SecondFactorType((string)$this->stepupProvider);
91
+        $metadata->secondFactorType = new SecondFactorType((string) $this->stepupProvider);
92 92
         $metadata->secondFactorIdentifier = $this->gssfId;
93 93
 
94 94
         return $metadata;
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             Email::unknown(),
112 112
             new Locale($data['preferred_locale']),
113 113
             DateTime::fromString($data['registration_requested_at']),
114
-            (string)$data['registration_code'],
114
+            (string) $data['registration_code'],
115 115
         );
116 116
     }
117 117
 
@@ -123,13 +123,13 @@  discard block
 block discarded – undo
123 123
     public function serialize(): array
124 124
     {
125 125
         return [
126
-            'identity_id' => (string)$this->identityId,
127
-            'identity_institution' => (string)$this->identityInstitution,
128
-            'second_factor_id' => (string)$this->secondFactorId,
129
-            'stepup_provider' => (string)$this->stepupProvider,
130
-            'registration_requested_at' => (string)$this->registrationRequestedAt,
126
+            'identity_id' => (string) $this->identityId,
127
+            'identity_institution' => (string) $this->identityInstitution,
128
+            'second_factor_id' => (string) $this->secondFactorId,
129
+            'stepup_provider' => (string) $this->stepupProvider,
130
+            'registration_requested_at' => (string) $this->registrationRequestedAt,
131 131
             'registration_code' => $this->registrationCode,
132
-            'preferred_locale' => (string)$this->preferredLocale,
132
+            'preferred_locale' => (string) $this->preferredLocale,
133 133
         ];
134 134
     }
135 135
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         return (new SensitiveData)
139 139
             ->withCommonName($this->commonName)
140 140
             ->withEmail($this->email)
141
-            ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string)$this->stepupProvider));
141
+            ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string) $this->stepupProvider));
142 142
     }
143 143
 
144 144
     public function setSensitiveData(SensitiveData $sensitiveData): void
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/YubikeySecondFactorBootstrappedEvent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -90,11 +90,11 @@
 block discarded – undo
90 90
     public function serialize(): array
91 91
     {
92 92
         return [
93
-            'identity_id' => (string)$this->identityId,
94
-            'name_id' => (string)$this->nameId,
95
-            'identity_institution' => (string)$this->identityInstitution,
96
-            'preferred_locale' => (string)$this->preferredLocale,
97
-            'second_factor_id' => (string)$this->secondFactorId,
93
+            'identity_id' => (string) $this->identityId,
94
+            'name_id' => (string) $this->nameId,
95
+            'identity_institution' => (string) $this->identityInstitution,
96
+            'preferred_locale' => (string) $this->preferredLocale,
97
+            'second_factor_id' => (string) $this->secondFactorId,
98 98
         ];
99 99
     }
100 100
 
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Event/GssfPossessionProvenEvent.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $metadata->identityId = $this->identityId;
78 78
         $metadata->identityInstitution = $this->identityInstitution;
79 79
         $metadata->secondFactorId = $this->secondFactorId;
80
-        $metadata->secondFactorType = new SecondFactorType((string)$this->stepupProvider);
80
+        $metadata->secondFactorType = new SecondFactorType((string) $this->stepupProvider);
81 81
         $metadata->secondFactorIdentifier = $this->gssfId;
82 82
 
83 83
         return $metadata;
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
     public function serialize(): array
113 113
     {
114 114
         return [
115
-            'identity_id' => (string)$this->identityId,
116
-            'identity_institution' => (string)$this->identityInstitution,
117
-            'second_factor_id' => (string)$this->secondFactorId,
118
-            'stepup_provider' => (string)$this->stepupProvider,
115
+            'identity_id' => (string) $this->identityId,
116
+            'identity_institution' => (string) $this->identityInstitution,
117
+            'second_factor_id' => (string) $this->secondFactorId,
118
+            'stepup_provider' => (string) $this->stepupProvider,
119 119
             'email_verification_required' => $this->emailVerificationRequired,
120 120
             'email_verification_window' => $this->emailVerificationWindow->serialize(),
121 121
             'email_verification_nonce' => $this->emailVerificationNonce,
122
-            'preferred_locale' => (string)$this->preferredLocale,
122
+            'preferred_locale' => (string) $this->preferredLocale,
123 123
         ];
124 124
     }
125 125
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         return (new SensitiveData)
129 129
             ->withCommonName($this->commonName)
130 130
             ->withEmail($this->email)
131
-            ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string)$this->stepupProvider));
131
+            ->withSecondFactorIdentifier($this->gssfId, new SecondFactorType((string) $this->stepupProvider));
132 132
     }
133 133
 
134 134
     public function setSensitiveData(SensitiveData $sensitiveData): void
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Collection/InstitutionCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 
119 119
     public function serialize(): array
120 120
     {
121
-        return array_map(fn(Institution $institution): string => (string)$institution, $this->elements);
121
+        return array_map(fn(Institution $institution): string => (string) $institution, $this->elements);
122 122
     }
123 123
 
124 124
     public function getIterator(): Iterator
Please login to merge, or discard this patch.
src/Surfnet/Stepup/Identity/Collection/VettingTypeHintCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
     public function __toString(): string
68 68
     {
69
-        return (string)json_encode($this->jsonSerialize());
69
+        return (string) json_encode($this->jsonSerialize());
70 70
     }
71 71
 
72 72
     public function serialize(): array
Please login to merge, or discard this patch.