mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Make method static
This commit is contained in:
@@ -123,7 +123,7 @@ class AmountFormat extends Twig_Extension
|
|||||||
return new Twig_SimpleFunction(
|
return new Twig_SimpleFunction(
|
||||||
'formatAmountBySymbol',
|
'formatAmountBySymbol',
|
||||||
/** @noinspection MoreThanThreeArgumentsInspection */
|
/** @noinspection MoreThanThreeArgumentsInspection */
|
||||||
function (string $amount, string $symbol, int $decimalPlaces = null, bool $coloured = null): string {
|
static function (string $amount, string $symbol, int $decimalPlaces = null, bool $coloured = null): string {
|
||||||
$decimalPlaces = $decimalPlaces ?? 2;
|
$decimalPlaces = $decimalPlaces ?? 2;
|
||||||
$coloured = $coloured ?? true;
|
$coloured = $coloured ?? true;
|
||||||
$currency = new TransactionCurrency;
|
$currency = new TransactionCurrency;
|
||||||
|
Reference in New Issue
Block a user