mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Reformat various code.
This commit is contained in:
@@ -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');
|
||||
|
@@ -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');
|
||||
}
|
||||
}
|
||||
|
@@ -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 {
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user