mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Various code cleanup.
This commit is contained in:
@@ -463,6 +463,7 @@ class ImportArrayStorage
|
||||
foreach ($transaction['transactions'] as $current) {
|
||||
|
||||
// get the amount:
|
||||
/** @noinspection UnnecessaryCastingInspection */
|
||||
$amount = (string)($current['amount'] ?? '0');
|
||||
if (bccomp($amount, '0') === -1) {
|
||||
$amount = bcmul($amount, '-1'); // @codeCoverageIgnore
|
||||
|
Reference in New Issue
Block a user