mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Removed for-loop in favour of "pluck()" aka: RTFM.
This commit is contained in:
@@ -39,11 +39,7 @@ class ComponentRepository
|
||||
return $cache->get(); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
$ids = [];
|
||||
/** @var Account $account */
|
||||
foreach ($accounts as $account) {
|
||||
$ids[] = $account->id;
|
||||
}
|
||||
$ids = $accounts->pluck('id')->toArray();
|
||||
|
||||
|
||||
$entry = $object->transactionjournals()
|
||||
|
Reference in New Issue
Block a user