Completed
Push — master ( 943fd4...0174c5 )
by Raffael
02:20
created
src/Auth/Adapter/Oidc.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         if($this->token_validation_url) {
205 205
             $this->logger->debug('validate oauth2 token via rfc7662 token validation endpoint ['.$this->token_validation_url.']', [
206
-               'category' => get_class($this),
206
+                'category' => get_class($this),
207 207
             ]);
208 208
 
209 209
             $url = str_replace('{token}', $token, $this->token_validation_url);
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             }
215 215
 
216 216
             $this->logger->debug('validate token via openid-connect userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [
217
-               'category' => get_class($this),
217
+                'category' => get_class($this),
218 218
             ]);
219 219
 
220 220
             $url = $discovery['userinfo_endpoint'].'?access_token='.$token;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
         if($code === 200) {
232 232
             $attributes = json_decode($result, true);
233 233
             $this->logger->debug('successfully verified oauth2 access token via authorization server', [
234
-               'category' => get_class($this),
234
+                'category' => get_class($this),
235 235
             ]);
236 236
 
237 237
             if(!isset($attributes[$this->identity_attribute])) {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
             return true;
250 250
         } else {
251 251
             $this->logger->error('failed verify oauth2 access token via authorization server, received status ['.$code.']', [
252
-               'category' => get_class($this),
252
+                'category' => get_class($this),
253 253
             ]);
254 254
 
255 255
             throw new Exception('failed verify oauth2 access token via authorization server');
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         }
275 275
 
276 276
         $this->logger->debug('fetch user attributes from userinfo_endpoint ['.$discovery['userinfo_endpoint'].']', [
277
-           'category' => get_class($this),
277
+            'category' => get_class($this),
278 278
         ]);
279 279
 
280 280
         $url = $discovery['userinfo_endpoint'].'?access_token='.$this->access_token;
@@ -289,13 +289,13 @@  discard block
 block discarded – undo
289 289
         if($code === 200) {
290 290
             $attributes = json_decode($result, true);
291 291
             $this->logger->debug('successfully requested user attributes from userinfo_endpoint', [
292
-               'category' => get_class($this),
292
+                'category' => get_class($this),
293 293
             ]);
294 294
 
295 295
             return $this->attributes = $attributes;
296 296
         } else {
297 297
             $this->logger->error('failed requesting user attributes from userinfo_endpoint, status code ['.$code.']', [
298
-               'category' => get_class($this),
298
+                'category' => get_class($this),
299 299
             ]);
300 300
 
301 301
             throw new Exception('failed requesting user attribute from userinfo_endpoint');
Please login to merge, or discard this patch.
src/Container.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@
 block discarded – undo
191 191
                     }
192 192
 
193 193
                     $args[$param_name] = $this->findParentService($name, $type_class, $config, $parents);
194
-               }
194
+                }
195 195
             }
196 196
 
197 197
             return $this->createInstance($name, $reflection, $args, $config, $parents);
Please login to merge, or discard this patch.
src/Http/Router.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -352,11 +352,11 @@
 block discarded – undo
352 352
                 if (isset($request_params[$param->name]) && $request_params[$param->name] !== '') {
353 353
                     if (is_bool($default)) {
354 354
                         if($request_params[$param->name] === 'false') {
355
-                             $return[$param->name] = false;
355
+                                $return[$param->name] = false;
356 356
                         } else {
357 357
                             $return[$param->name] = (bool)$request_params[$param->name];
358 358
                         }
359
-                   } elseif (is_int($default)) {
359
+                    } elseif (is_int($default)) {
360 360
                         $return[$param->name] = (int)$request_params[$param->name];
361 361
                     } elseif (is_array($default)) {
362 362
                         $return[$param->name] = (array)$request_params[$param->name];
Please login to merge, or discard this patch.