mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Remove static references
This commit is contained in:
@@ -41,9 +41,9 @@ class PiggyBankEventFactory
|
||||
*/
|
||||
public function create(TransactionJournal $journal, ?PiggyBank $piggyBank): void
|
||||
{
|
||||
Log::debug(sprintf('Now in PiggyBankEventCreate for a %s', $journal->transactionType->type));
|
||||
app('log')->debug(sprintf('Now in PiggyBankEventCreate for a %s', $journal->transactionType->type));
|
||||
if (null === $piggyBank) {
|
||||
Log::debug('Piggy bank is null');
|
||||
app('log')->debug('Piggy bank is null');
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -58,10 +58,10 @@ class PiggyBankEventFactory
|
||||
|
||||
return;
|
||||
}
|
||||
Log::debug('Found repetition');
|
||||
app('log')->debug('Found repetition');
|
||||
$amount = $piggyRepos->getExactAmount($piggyBank, $repetition, $journal);
|
||||
if (0 === bccomp($amount, '0')) {
|
||||
Log::debug('Amount is zero, will not create event.');
|
||||
app('log')->debug('Amount is zero, will not create event.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user