mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup and fixed alignments.
This commit is contained in:
@@ -41,8 +41,8 @@ class CreateGroupMemberships extends Command
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const string CONFIG_NAME = '560_create_group_memberships';
|
||||
protected $description = 'Update group memberships';
|
||||
protected $signature = 'firefly-iii:create-group-memberships';
|
||||
protected $description = 'Update group memberships';
|
||||
protected $signature = 'firefly-iii:create-group-memberships';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
@@ -65,12 +65,12 @@ class CreateGroupMemberships extends Command
|
||||
public static function createGroupMembership(User $user): void
|
||||
{
|
||||
// check if membership exists
|
||||
$userGroup = UserGroup::where('title', $user->email)->first();
|
||||
$userGroup = UserGroup::where('title', $user->email)->first();
|
||||
if (null === $userGroup) {
|
||||
$userGroup = UserGroup::create(['title' => $user->email]);
|
||||
}
|
||||
|
||||
$userRole = UserRole::where('title', UserRoleEnum::OWNER->value)->first();
|
||||
$userRole = UserRole::where('title', UserRoleEnum::OWNER->value)->first();
|
||||
|
||||
if (null === $userRole) {
|
||||
throw new FireflyException('Firefly III could not find a user role. Please make sure all migrations have run.');
|
||||
|
@@ -39,7 +39,7 @@ class ReportEmptyObjects extends Command
|
||||
|
||||
protected $description = 'Reports on empty database objects.';
|
||||
|
||||
protected $signature = 'firefly-iii:report-empty-objects';
|
||||
protected $signature = 'firefly-iii:report-empty-objects';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
|
@@ -35,7 +35,7 @@ class ReportIntegrity extends Command
|
||||
|
||||
protected $description = 'Will report on the integrity of your database.';
|
||||
|
||||
protected $signature = 'firefly-iii:report-integrity';
|
||||
protected $signature = 'firefly-iii:report-integrity';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
|
@@ -83,7 +83,7 @@ class UpdateGroupInformation extends Command
|
||||
|
||||
return;
|
||||
}
|
||||
$set = [
|
||||
$set = [
|
||||
Account::class,
|
||||
Attachment::class,
|
||||
AvailableBudget::class,
|
||||
|
Reference in New Issue
Block a user