From 19027871043cba77b43984a0e064188f0314c22e Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 17 Feb 2016 20:23:53 +0100 Subject: [PATCH] Removed constructor. --- app/Http/Controllers/RuleController.php | 2 ++ app/Rules/TransactionMatcher.php | 10 ---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/Http/Controllers/RuleController.php b/app/Http/Controllers/RuleController.php index 43c5ae6beb..43839ef11a 100644 --- a/app/Http/Controllers/RuleController.php +++ b/app/Http/Controllers/RuleController.php @@ -280,6 +280,8 @@ class RuleController extends Controller $limit = Config::get('firefly.test-triggers.limit'); $range = Config::get('firefly.test-triggers.range'); + $matcher = new TransactionMatcher; + // Dispatch the actual work to a matched object $matchingTransactions = (new TransactionMatcher($triggers)) diff --git a/app/Rules/TransactionMatcher.php b/app/Rules/TransactionMatcher.php index 4778466848..9dcc4b7aae 100644 --- a/app/Rules/TransactionMatcher.php +++ b/app/Rules/TransactionMatcher.php @@ -29,16 +29,6 @@ class TransactionMatcher /** @var array List of triggers to match */ protected $triggers = []; - /** - * Default constructor - * - * @param $triggers - */ - public function __construct($triggers) - { - $this->setTriggers($triggers); - } - /** * Find matching transactions for the current set of triggers *