mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Add some TODO's, refactor some code.
This commit is contained in:
@@ -58,6 +58,9 @@ class CategoryFactory
|
||||
$result = null;
|
||||
/** @var Collection $collection */
|
||||
$collection = $this->user->categories()->get();
|
||||
|
||||
// TODO no longer need to loop like this
|
||||
|
||||
/** @var Category $category */
|
||||
foreach ($collection as $category) {
|
||||
if ($category->name === $name) {
|
||||
|
Reference in New Issue
Block a user