mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Remove static references
This commit is contained in:
@@ -65,11 +65,11 @@ class BudgetLimitHandler
|
||||
Log::debug(sprintf('Now in updateAvailableBudget(#%d)', $budgetLimit->id));
|
||||
$budget = Budget::find($budgetLimit->budget_id);
|
||||
if (null === $budget) {
|
||||
Log::warning('Budget is null, probably deleted, find deleted version.');
|
||||
app('log')->warning('Budget is null, probably deleted, find deleted version.');
|
||||
$budget = Budget::withTrashed()->find($budgetLimit->budget_id);
|
||||
}
|
||||
if (null === $budget) {
|
||||
Log::warning('Budget is still null, cannot continue, will delete budget limit.');
|
||||
app('log')->warning('Budget is still null, cannot continue, will delete budget limit.');
|
||||
$budgetLimit->forceDelete();
|
||||
return;
|
||||
}
|
||||
@@ -77,7 +77,7 @@ class BudgetLimitHandler
|
||||
|
||||
// sanity check. It happens when the budget has been deleted so the original user is unknown.
|
||||
if (null === $user) {
|
||||
Log::warning('User is null, cannot continue.');
|
||||
app('log')->warning('User is null, cannot continue.');
|
||||
$budgetLimit->forceDelete();
|
||||
return;
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@ class PiggyBankEventHandler
|
||||
->where('transaction_journal_id', $journal->id)
|
||||
->exists();
|
||||
if ($exists) {
|
||||
Log::warning('Already have event for this journal and piggy, will not create another.');
|
||||
app('log')->warning('Already have event for this journal and piggy, will not create another.');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user