Skip to content

Commit

Permalink
Merge pull request #7 from 365Werk/analysis-VrlxE3
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
HergenD authored Sep 21, 2020
2 parents 6747969 + ad05c22 commit c46c86e
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 c46c86e

Please sign in to comment.