mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-11 07:10:48 +00:00
Various code cleanup.
This commit is contained in:
@@ -97,7 +97,6 @@ class UserGroupRepository implements UserGroupRepositoryInterface, UserGroupInte
|
||||
/**
|
||||
* Returns all groups the user is member in.
|
||||
*
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function get(): Collection
|
||||
{
|
||||
@@ -137,7 +136,6 @@ class UserGroupRepository implements UserGroupRepositoryInterface, UserGroupInte
|
||||
if (!$existingGroup instanceof UserGroup) {
|
||||
$exists = false;
|
||||
|
||||
/** @var UserGroup $existingGroup */
|
||||
$existingGroup = $this->store(['user' => $user, 'title' => $groupName]);
|
||||
}
|
||||
$groupName = sprintf('%s-%s', $user->email, substr(sha1(random_int(1000, 9999).microtime()), 0, 4));
|
||||
@@ -168,7 +166,6 @@ class UserGroupRepository implements UserGroupRepositoryInterface, UserGroupInte
|
||||
/**
|
||||
* Returns all groups.
|
||||
*
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAll(): Collection
|
||||
{
|
||||
|
Reference in New Issue
Block a user