Various code fixes.

This commit is contained in:
James Cole
2022-10-31 05:53:36 +01:00
parent 0059ed7bde
commit 249b0c3377
88 changed files with 180 additions and 180 deletions

View File

@@ -70,7 +70,7 @@ class AccountDestroyService
// delete account.
try {
$account->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
}
@@ -122,7 +122,7 @@ class AccountDestroyService
$collection = Transaction::groupBy('transaction_journal_id', 'account_id')
->where('account_id', $moveTo->id)
->get(['transaction_journal_id', 'account_id', DB::raw('count(*) as the_count')]);
->get(['transaction_journal_id', 'account_id', DB::raw('count(*) as the_count')]);
if (0 === $collection->count()) {
return;
}

View File

@@ -39,7 +39,7 @@ class BillDestroyService
{
try {
$bill->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
}

View File

@@ -41,7 +41,7 @@ class BudgetDestroyService
{
try {
$budget->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}

View File

@@ -41,7 +41,7 @@ class CategoryDestroyService
{
try {
$category->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}

View File

@@ -40,7 +40,7 @@ class CurrencyDestroyService
{
try {
$currency->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
}

View File

@@ -95,7 +95,7 @@ class JournalDestroyService
$group->delete();
}
}
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
}

View File

@@ -58,7 +58,7 @@ class RecurrenceDestroyService
try {
// delete all meta data
$recurrence->recurrenceMeta()->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
// delete all transactions.
@@ -67,7 +67,7 @@ class RecurrenceDestroyService
$transaction->recurrenceTransactionMeta()->delete();
try {
$transaction->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
}
@@ -77,7 +77,7 @@ class RecurrenceDestroyService
// delete recurrence
try {
$recurrence->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
}

View File

@@ -45,7 +45,7 @@ class TransactionGroupDestroyService
}
try {
$transactionGroup->delete();
} catch (Exception $e) {
} catch (Exception $e) {
// @ignoreException
}
}