mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Various code cleanup.
This commit is contained in:
@@ -149,7 +149,7 @@ class AccountFactory
|
||||
// try with type:
|
||||
if (null === $result) {
|
||||
$types = config(sprintf('firefly.accountTypeByIdentifier.%s', $accountTypeName)) ?? [];
|
||||
if (count($types) > 0) {
|
||||
if (!empty($types)) {
|
||||
$result = AccountType::whereIn('type', $types)->first();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user