mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Some light refactoring. No changes.
This commit is contained in:
@@ -36,7 +36,7 @@ trait VerifiesAccessToken
|
||||
/**
|
||||
* Abstract method to make sure trait knows about method "option".
|
||||
*
|
||||
* @param null $key
|
||||
* @param string|null $key
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
@@ -55,7 +55,7 @@ trait VerifiesAccessToken
|
||||
$repository = app(UserRepositoryInterface::class);
|
||||
$user = $repository->find($userId);
|
||||
|
||||
if (null === $user->id) {
|
||||
if (null === $user) {
|
||||
Log::error(sprintf('verifyAccessToken(): no such user for input "%d"', $userId));
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user