mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Code cleaning stuff.
This commit is contained in:
@@ -53,7 +53,7 @@ class AssetAccountIbans implements MapperInterface
|
||||
foreach ($set as $account) {
|
||||
$iban = $account->iban ?? '';
|
||||
$accountId = (int)$account->id;
|
||||
if (\strlen($iban) > 0) {
|
||||
if ('' !== $iban) {
|
||||
$name = $account->iban . ' (' . $account->name . ')';
|
||||
|
||||
// is a liability?
|
||||
|
@@ -40,7 +40,9 @@ class AssetAccounts implements MapperInterface
|
||||
{
|
||||
/** @var AccountRepositoryInterface $accountRepository */
|
||||
$accountRepository = app(AccountRepositoryInterface::class);
|
||||
$set = $accountRepository->getAccountsByType([AccountType::DEFAULT, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::CREDITCARD, AccountType::MORTGAGE,]);
|
||||
$set = $accountRepository->getAccountsByType(
|
||||
[AccountType::DEFAULT, AccountType::ASSET, AccountType::LOAN, AccountType::DEBT, AccountType::CREDITCARD, AccountType::MORTGAGE,]
|
||||
);
|
||||
$list = [];
|
||||
|
||||
/** @var Account $account */
|
||||
@@ -48,7 +50,7 @@ class AssetAccounts implements MapperInterface
|
||||
$accountId = (int)$account->id;
|
||||
$name = $account->name;
|
||||
$iban = $account->iban ?? '';
|
||||
if (\strlen($iban) > 0) {
|
||||
if ('' !== $iban) {
|
||||
$name .= ' (' . $iban . ')';
|
||||
}
|
||||
|
||||
|
@@ -55,7 +55,7 @@ class OpposingAccountIbans implements MapperInterface
|
||||
foreach ($set as $account) {
|
||||
$iban = $account->iban ?? '';
|
||||
$accountId = (int)$account->id;
|
||||
if (\strlen($iban) > 0) {
|
||||
if ('' !== $iban) {
|
||||
$name = $account->iban . ' (' . $account->name . ')';
|
||||
|
||||
// is a liability?
|
||||
|
@@ -55,7 +55,7 @@ class OpposingAccounts implements MapperInterface
|
||||
$accountId = (int)$account->id;
|
||||
$name = $account->name;
|
||||
$iban = $account->iban ?? '';
|
||||
if (\strlen($iban) > 0) {
|
||||
if ('' !== $iban) {
|
||||
$name .= ' (' . $iban . ')';
|
||||
}
|
||||
// is a liability?
|
||||
|
Reference in New Issue
Block a user