From 7cb86d0254bd8238dfb2554ebf10f677dfc4c63d Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 17 Feb 2016 20:24:59 +0100 Subject: [PATCH] Add field. Also limit range. --- app/Rules/TransactionMatcher.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Rules/TransactionMatcher.php b/app/Rules/TransactionMatcher.php index 802cd3f643..61cc4ad082 100644 --- a/app/Rules/TransactionMatcher.php +++ b/app/Rules/TransactionMatcher.php @@ -23,7 +23,10 @@ use FireflyIII\Repositories\Journal\JournalRepositoryInterface; class TransactionMatcher { /** @var int Maximum number of transaction to search in (for performance reasons) * */ - private $range = 1000; + private $range = 200; + /** @var int */ + private $limit = 10; + /** @var array */ protected $transactionTypes = [TransactionType::DEPOSIT, TransactionType::WITHDRAWAL, TransactionType::TRANSFER]; /** @var array List of triggers to match */