Passed
Push — master ( 47c822...cf7f51 )
by Thomas Mauro
07:18
created
src/Middleware/JWKSetHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $this->streamFactory = $streamFactory;
42 42
         $this->jwkset = $jwkset;
43 43
         $this->maxAge = $maxAge;
44
-        $this->jwkSetFactory = $jwkSetFactory ?: static function (array $keys) {
44
+        $this->jwkSetFactory = $jwkSetFactory ?: static function(array $keys) {
45 45
             return new JWKSet($keys);
46 46
         };
47 47
     }
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
             $response = $response->withHeader('Cache-Control', 'max-age=' . $this->maxAge);
55 55
         }
56 56
 
57
-        $keys = \array_map(static function (JWK $jwk) {
57
+        $keys = \array_map(static function(JWK $jwk) {
58 58
             return $jwk->toPublic();
59 59
         }, $this->jwkset->all());
60 60
 
61 61
         $jwks = ($this->jwkSetFactory)($keys);
62 62
 
63
-        if (! $jwks instanceof JWKSet) {
63
+        if (!$jwks instanceof JWKSet) {
64 64
             throw new RuntimeException('Invalid JWKSet created');
65 65
         }
66 66
 
Please login to merge, or discard this patch.