mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 06:31:22 +00:00
Large commit to get rid of a lot of static methods.
This commit is contained in:
@@ -310,7 +310,7 @@ class General extends Twig_Extension
|
||||
{
|
||||
return new Twig_SimpleFunction(
|
||||
'getAmount', function (TransactionJournal $journal): string {
|
||||
return TransactionJournal::amount($journal);
|
||||
return $journal->amount();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class Journal extends Twig_Extension
|
||||
return $cache->get();
|
||||
}
|
||||
|
||||
$list = TransactionJournal::destinationAccountList($journal);
|
||||
$list = $journal->destinationAccountList();
|
||||
$array = [];
|
||||
/** @var Account $entry */
|
||||
foreach ($list as $entry) {
|
||||
|
||||
Reference in New Issue
Block a user