Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
HergenD authored and StyleCIBot committed Sep 21, 2020
1 parent 6747969 commit ad05c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JwtAuthRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private static function jwkToPem(object $jwk): ?string
'n' => new BigInteger(JWT::urlsafeB64Decode($jwk->n), 256),
]);

if($rsa->getPublicKey() === false){
if ($rsa->getPublicKey() === false) {
return null;
}

Expand Down Expand Up @@ -132,7 +132,7 @@ private static function verifyToken(string $jwt, string $uri, bool $jwk = false)
}

if (config('jwtauthroles.cache.enabled')) {
if (config('jwtauthroles.cache.type') === 'database' && !$row) {
if (config('jwtauthroles.cache.type') === 'database' && ! $row) {
JwtKey::create(['kid' => $kid, 'key' => $publicKey]);
}
}
Expand Down

0 comments on commit ad05c22

Please sign in to comment.