mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 13:16:31 +00:00
Refactor rule processor so it's testable.
This commit is contained in:
@@ -93,8 +93,10 @@ class TransactionMatcher
|
||||
}
|
||||
|
||||
// Variables used within the loop
|
||||
$processor = Processor::makeFromStringArray($this->triggers);
|
||||
$result = $this->runProcessor($processor);
|
||||
/** @var Processor $processor */
|
||||
$processor = app(Processor::class);
|
||||
$processor->makeFromStringArray($this->triggers);
|
||||
$result = $this->runProcessor($processor);
|
||||
|
||||
// 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