Passed
Push — master ( e2ab3d...27d13a )
by Alexandre
02:39
created
src/Extensions/OpenID/IdTokenManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function decode(string $idToken): IdTokenInterface
38 38
     {
39 39
         $claims = $this->jwt->decode($idToken, self::KEY, 'HS256');
40
-        $idToken = new IdToken((array)$claims);
40
+        $idToken = new IdToken((array) $claims);
41 41
         return $idToken;
42 42
     }
43 43
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             $alg = $metadata->getIdTokenSignedResponseAlg() ?: 'RS256';
61 61
         }
62 62
 
63
-        $keys=[];
63
+        $keys = [];
64 64
         $jwks = $metadata->getJwks();
65 65
 
66 66
         if (!empty($jwks)) {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             throw new \UnexpectedValueException('Client metadata Id token signed response alg value is unexpected. 
136 136
             It must end with "256", "384" or "513"');
137 137
         }
138
-        $macAlgorithm = 'sha' . $macAlgorithm;
138
+        $macAlgorithm = 'sha'.$macAlgorithm;
139 139
 
140 140
         $hash = hash($macAlgorithm, $target, true);
141 141
         $hash = substr($hash, 0, strlen($hash) / 2);
Please login to merge, or discard this patch.