Passed
Push — master ( 356a95...1971ea )
by Thomas Mauro
03:21
created
src/RequestObject/RequestObjectFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             'exp' => \time() + 300,
75 75
         ]));
76 76
 
77
-        if (! $payload) {
77
+        if (!$payload) {
78 78
             throw new RuntimeException('Unable to encode payload');
79 79
         }
80 80
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             $jwk = $client->getJWKS()->selectKey('sig', null, ['alg' => $alg]);
103 103
         }
104 104
 
105
-        if (! $jwk) {
105
+        if (!$jwk) {
106 106
             throw new RuntimeException('No key to sign with alg ' . $alg);
107 107
         }
108 108
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $header = \array_filter([
112 112
             'alg' => $alg,
113 113
             'typ' => 'JWT',
114
-            'kid' => ! $ktyIsOct && $jwk->has('kid') ? $jwk->get('kid') : null,
114
+            'kid' => !$ktyIsOct && $jwk->has('kid') ? $jwk->get('kid') : null,
115 115
         ]);
116 116
 
117 117
         $jws = $this->jwsBuilder->create()
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         /** @var null|string $alg */
131 131
         $alg = $metadata->get('request_object_encryption_alg');
132 132
 
133
-        if (! $alg) {
133
+        if (!$alg) {
134 134
             return $payload;
135 135
         }
136 136
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             );
147 147
         }
148 148
 
149
-        if (! $jwk) {
149
+        if (!$jwk) {
150 150
             throw new RuntimeException('No key to sign with alg ' . $alg);
151 151
         }
152 152
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             'alg' => $alg,
157 157
             'enc' => $enc,
158 158
             'cty' => 'JWT',
159
-            'kid' => ! $ktyIsOct && $jwk->has('kid') ? $jwk->get('kid') : null,
159
+            'kid' => !$ktyIsOct && $jwk->has('kid') ? $jwk->get('kid') : null,
160 160
         ]);
161 161
 
162 162
         $jwe = $this->jweBuilder->create()
Please login to merge, or discard this patch.