return null explicitly for nullable return types

This commit is contained in:
Jonny Barnes 2017-03-01 21:08:18 +00:00
parent 241ef0bd7e
commit 884f92b5a5
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class IndieAuthService
{
$endpoint = $this->client->discoverAuthorizationEndpoint($this->client->normalizeMeURL($domain));
if ($endpoint === false) {
return;
return null;
}
return $endpoint;

View file

@ -45,7 +45,7 @@ class TokenService
try {
$token = (new Parser())->parse((string) $token);
} catch (InvalidArgumentException | RuntimeException $e) {
return;
return null;
}
if ($token->verify($signer, config('app.key'))) {
//signuture valid