Various code cleanup

This commit is contained in:
James Cole
2023-09-20 06:36:43 +02:00
parent 6b5774a66d
commit 7bf7bb529e
48 changed files with 348 additions and 84 deletions

View File

@@ -175,7 +175,10 @@ class BillTransformer extends AbstractTransformer
'native_amount' => $this->converter->convert($currencies[$currencyId], $this->default, $journal->date, $transaction['amount']),
'foreign_native_amount' => '' === (string)$transaction['foreign_amount'] ? null : $this->converter->convert(
$currencies[$foreignCurrencyId],
$this->default, $journal->date, $transaction['foreign_amount']),
$this->default,
$journal->date,
$transaction['foreign_amount']
),
];
}
}

View File

@@ -1,4 +1,6 @@
<?php
/*
* UserGroupTransformer.php
* Copyright (c) 2023 james@firefly-iii.org
@@ -19,6 +21,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Transformers\V2;
use FireflyIII\Enums\UserRoleEnum;