mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 02:38:09 +00:00
Various code cleanup.
This commit is contained in:
@@ -161,11 +161,8 @@ class UserRepository implements UserRepositoryInterface
|
||||
{
|
||||
/** @var null|Role $role */
|
||||
$role = $user->roles()->first();
|
||||
if (null !== $role) {
|
||||
return $role->name;
|
||||
}
|
||||
return $role?->name;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -379,7 +376,6 @@ class UserRepository implements UserRepositoryInterface
|
||||
* This updates the users email address. Same as changeEmail just without most logging. This makes sure that the
|
||||
* undo/confirm routine can't catch this one. The user is NOT blocked.
|
||||
*
|
||||
* @throws FireflyException
|
||||
*
|
||||
* @see changeEmail
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user