mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-13 16:00:13 +00:00
Some new phpDoc and refactoring.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user