Code Duplication    Length = 6-7 lines in 2 locations

src/Filterer/RuleFilterer.php 2 locations

@@ 146-152 (lines=7) @@
143
        }
144
145
        if (EqualRule::operator === $operator) {
146
            if (null === $value) {
147
                $out = is_null($value_to_compare);
148
            }
149
            else {
150
                // TODO support strict comparisons
151
                $out = $value_to_compare == $value;
152
            }
153
        }
154
        elseif (InRule::operator === $operator) {
155
            $out = in_array($value_to_compare, $value);
@@ 175-180 (lines=6) @@
172
            $out = (bool) $out;
173
        }
174
        elseif (NotEqualRule::operator === $operator) {
175
            if (null === $value) {
176
                $out = ! is_null($value_to_compare);
177
            }
178
            else {
179
                $out = $value != $value_to_compare;
180
            }
181
        }
182
        elseif (NotInRule::operator === $operator) {
183
            $out = ! in_array($value_to_compare, $value);