mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Clean up various code.
This commit is contained in:
@@ -49,7 +49,7 @@ class AssetAccountIbans implements MapperInterface
|
||||
if (\strlen($iban) > 0) {
|
||||
$topList[$accountId] = $account->iban . ' (' . $account->name . ')';
|
||||
}
|
||||
if (0 === \strlen($iban)) {
|
||||
if ('' === $iban) {
|
||||
$list[$accountId] = $account->name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,10 +55,11 @@ class OpposingAccountIbans implements MapperInterface
|
||||
if (\strlen($iban) > 0) {
|
||||
$topList[$accountId] = $account->iban . ' (' . $account->name . ')';
|
||||
}
|
||||
if (0 === \strlen($iban)) {
|
||||
if ('' === $iban) {
|
||||
$list[$accountId] = $account->name;
|
||||
}
|
||||
}
|
||||
/** @noinspection AdditionOperationOnArraysInspection */
|
||||
$list = $topList + $list;
|
||||
asort($list);
|
||||
$list = [0 => (string)trans('import.map_do_not_map')] + $list;
|
||||
|
||||
Reference in New Issue
Block a user