Skip to content

Commit 64d7eb0

Browse files
authored
cosmetic updates
1 parent 491ab3a commit 64d7eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JWT.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public static function decode($jwt, $key, $allowed_algs = array())
9898
}
9999
if (is_array($key) || $key instanceof \ArrayAccess) {
100100
if (isset($header->kid)) {
101-
if(!isset($key[$header->kid])) {
102-
throw new UnexpectedValueException('"kid" not found in key map, unable to lookup correct key');
101+
if (!isset($key[$header->kid])) {
102+
throw new UnexpectedValueException('"kid" invalid, unable to lookup correct key');
103103
}
104104
$key = $key[$header->kid];
105105
} else {

0 commit comments

Comments
 (0)