mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
Some new phpDoc and refactoring.
This commit is contained in:
parent
98fd5b8858
commit
1bcc975d7b
@ -375,6 +375,8 @@ class CategoryController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Not the most elegant solution but it works.
|
||||
*
|
||||
* @param Collection $entries
|
||||
*
|
||||
* @return Collection
|
||||
|
@ -74,10 +74,10 @@ class TransactionMatcher
|
||||
$processed += count($set);
|
||||
|
||||
// Check for conditions to finish the loop
|
||||
$reachedEndOfList = (count($set) < $pagesize);
|
||||
$foundEnoughTransactions = (count($result) >= $this->limit);
|
||||
$searchedEnoughTransactions = ($processed >= $this->range);
|
||||
} while (!$reachedEndOfList && !$foundEnoughTransactions && !$searchedEnoughTransactions);
|
||||
$reachedEndOfList = $set->count() < $pagesize;
|
||||
$foundEnough = $result->count() >= $this->limit;
|
||||
$searchedEnough = ($processed >= $this->range);
|
||||
} while (!$reachedEndOfList && !$foundEnough && !$searchedEnough);
|
||||
|
||||
// If the list of matchingTransactions is larger than the maximum number of results
|
||||
// (e.g. if a large percentage of the transactions match), truncate the list
|
||||
|
Loading…
Reference in New Issue
Block a user