Reformat various code.

This commit is contained in:
James Cole
2022-03-29 15:01:12 +02:00
parent d04efb8325
commit 452b6d0e1b
19 changed files with 95 additions and 94 deletions

View File

@@ -47,7 +47,7 @@ class UserGroups extends Migration
foreach ($this->tables as $tableName) {
Schema::table(
$tableName, function (Blueprint $table) use ($tableName) {
$table->dropForeign(sprintf('%s_to_ugi', $tableName));
if (Schema::hasColumn($tableName, 'user_group_id')) {
$table->dropColumn('user_group_id');

View File

@@ -31,6 +31,16 @@ use Illuminate\Support\Facades\Schema;
*/
class CreateLocalPersonalAccessTokensTable extends Migration
{
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('personal_access_tokens');
}
/**
* Run the migrations.
*
@@ -50,14 +60,4 @@ class CreateLocalPersonalAccessTokensTable extends Migration
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('personal_access_tokens');
}
}

View File

@@ -46,7 +46,7 @@ class AccountTypeSeeder extends Seeder
AccountType::RECONCILIATION,
AccountType::DEBT,
AccountType::MORTGAGE,
AccountType::LIABILITY_CREDIT
AccountType::LIABILITY_CREDIT,
];
foreach ($types as $type) {
try {

View File

@@ -49,7 +49,7 @@ class ConfigSeeder extends Seeder
);
}
if (null !== $entry) {
$version = (int)config('firefly.db_version');
$version = (int) config('firefly.db_version');
$entry->data = $version;
$entry->save();

View File

@@ -40,7 +40,7 @@ class TransactionTypeSeeder extends Seeder
TransactionType::OPENING_BALANCE,
TransactionType::RECONCILIATION,
TransactionType::INVALID,
TransactionType::LIABILITY_CREDIT
TransactionType::LIABILITY_CREDIT,
];
foreach ($types as $type) {