mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Replace phpstan suggestions
This commit is contained in:
@@ -101,7 +101,7 @@ class CorrectOpeningBalanceCurrencies extends Command
|
||||
$account = $this->getAccount($journal);
|
||||
if (null === $account) {
|
||||
$message = sprintf('Transaction journal #%d has no valid account. Cant fix this line.', $journal->id);
|
||||
Log::warning($message);
|
||||
app('log')->warning($message);
|
||||
$this->warn($message);
|
||||
|
||||
return 0;
|
||||
|
@@ -68,7 +68,7 @@ class FixUnevenAmount extends Command
|
||||
if (0 !== bccomp((string)$entry->the_sum, '0')) {
|
||||
$message = sprintf('Sum of journal #%d is %s instead of zero.', $entry->transaction_journal_id, $entry->the_sum);
|
||||
$this->warn($message);
|
||||
Log::warning($message);
|
||||
app('log')->warning($message);
|
||||
$this->fixJournal((int)$entry->transaction_journal_id);
|
||||
$count++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user