mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Some code cleanup courtesy of PHPStorm.
This commit is contained in:
@@ -29,9 +29,9 @@ class Amount
|
||||
*/
|
||||
public function formatAnything(TransactionCurrency $format, $amount, $coloured = true)
|
||||
{
|
||||
$locale = setlocale(LC_MONETARY, 0);
|
||||
$a = new NumberFormatter($locale, NumberFormatter::CURRENCY);
|
||||
$result = $a->formatCurrency($amount, $format->code);
|
||||
$locale = setlocale(LC_MONETARY, 0);
|
||||
$formatter = new NumberFormatter($locale, NumberFormatter::CURRENCY);
|
||||
$result = $formatter->formatCurrency($amount, $format->code);
|
||||
|
||||
if ($coloured === true) {
|
||||
if ($amount == 0) {
|
||||
|
Reference in New Issue
Block a user