mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Some code cleanup.
This commit is contained in:
@@ -6,7 +6,7 @@ namespace FireflyIII\Support\Twig;
|
||||
|
||||
use Amount;
|
||||
use FireflyIII\Models\Account;
|
||||
use FireflyIII\Models\Budget;
|
||||
use FireflyIII\Models\Budget as ModelBudget;
|
||||
use FireflyIII\Models\Transaction;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use FireflyIII\Support\CacheProperties;
|
||||
@@ -78,7 +78,7 @@ class Journal extends Twig_Extension
|
||||
public function formatBudgetPerspective(): Twig_SimpleFunction
|
||||
{
|
||||
return new Twig_SimpleFunction(
|
||||
'formatBudgetPerspective', function (TransactionJournal $journal, Budget $budget) {
|
||||
'formatBudgetPerspective', function (TransactionJournal $journal, ModelBudget $budget) {
|
||||
|
||||
$cache = new CacheProperties;
|
||||
$cache->addProperty('formatBudgetPerspective');
|
||||
|
Reference in New Issue
Block a user