Skip to content

Firefly III: a personal finances manager

Removed constructor.

James Cole19027871043c
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
*