Apply fixes from StyleCI

This commit is contained in:
Jonny Barnes 2017-03-01 21:01:00 +00:00 committed by StyleCI Bot
parent fe8f871e3a
commit 984f3c067b
9 changed files with 9 additions and 12 deletions

View file

@ -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;
}
}