mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
First part of a large code cleanup commit.
This commit is contained in:
@@ -80,10 +80,7 @@ trait AccountFilter
|
||||
'cc' => [AccountType::CREDITCARD],
|
||||
|
||||
];
|
||||
$return = $types['all'];
|
||||
if (isset($types[$type])) {
|
||||
$return = $types[$type];
|
||||
}
|
||||
$return = $types[$type] ?? $types['all'];
|
||||
|
||||
return $return; // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
@@ -58,10 +58,7 @@ trait TransactionFilter
|
||||
'specials' => [TransactionType::OPENING_BALANCE, TransactionType::RECONCILIATION,],
|
||||
'default' => [TransactionType::WITHDRAWAL, TransactionType::DEPOSIT, TransactionType::TRANSFER,],
|
||||
];
|
||||
$return = $types['default'];
|
||||
if (isset($types[$type])) {
|
||||
$return = $types[$type];
|
||||
}
|
||||
$return = $types[$type] ?? $types['default'];
|
||||
|
||||
return $return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user