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