mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 00:27:30 +00:00
Various code fixes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ class BillDestroyService
|
||||
{
|
||||
try {
|
||||
$bill->delete();
|
||||
} catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ class BudgetDestroyService
|
||||
{
|
||||
try {
|
||||
$budget->delete();
|
||||
} catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ class CategoryDestroyService
|
||||
{
|
||||
try {
|
||||
$category->delete();
|
||||
} catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
|
||||
|
@@ -40,7 +40,7 @@ class CurrencyDestroyService
|
||||
{
|
||||
try {
|
||||
$currency->delete();
|
||||
} catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
}
|
||||
|
@@ -95,7 +95,7 @@ class JournalDestroyService
|
||||
$group->delete();
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ class TransactionGroupDestroyService
|
||||
}
|
||||
try {
|
||||
$transactionGroup->delete();
|
||||
} catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
// @ignoreException
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user