Apply fixes from StyleCI
This commit is contained in:
parent
fe8f871e3a
commit
984f3c067b
9 changed files with 9 additions and 12 deletions
|
@ -45,13 +45,11 @@ class TokenService
|
|||
try {
|
||||
$token = (new Parser())->parse((string) $token);
|
||||
} catch (InvalidArgumentException | RuntimeException $e) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
if ($token->verify($signer, config('app.key'))) {
|
||||
//signuture valid
|
||||
return $token;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue