pull/5738/head
parent
4a769a785c
commit
a9e88a27b3
|
@ -58,12 +58,12 @@ class RuleSet implements \IteratorAggregate, \Countable
|
||||||
throw new \OutOfBoundsException('Unknown rule type: ' . $type);
|
throw new \OutOfBoundsException('Unknown rule type: ' . $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$hash = $rule->getHash();
|
||||||
|
|
||||||
if (!isset($this->rules[$type])) {
|
if (!isset($this->rules[$type])) {
|
||||||
$this->rules[$type] = array();
|
$this->rules[$type] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash = $rule->getHash();
|
|
||||||
|
|
||||||
// Do not add if rule already exists
|
// Do not add if rule already exists
|
||||||
if (isset($this->rulesByHash[$hash])) {
|
if (isset($this->rulesByHash[$hash])) {
|
||||||
$potentialDuplicates = $this->rulesByHash[$hash];
|
$potentialDuplicates = $this->rulesByHash[$hash];
|
||||||
|
|
Loading…
Reference in New Issue