Code Duplication    Length = 6-7 lines in 2 locations

src/Filterer/RuleFilterer.php 2 locations

@@ 172-178 (lines=7) @@
169
        }
170
171
        if (EqualRule::operator === $operator) {
172
            if (null === $value) {
173
                $out = is_null($value_to_validate);
174
            }
175
            else {
176
                // TODO support strict comparisons
177
                $out = $value_to_validate == $value;
178
            }
179
        }
180
        elseif (InRule::operator === $operator) {
181
            $out = in_array($value_to_validate, $value);
@@ 214-219 (lines=6) @@
211
            $out = (bool) $out;
212
        }
213
        elseif (NotEqualRule::operator === $operator) {
214
            if (null === $value) {
215
                $out = ! is_null($value_to_validate);
216
            }
217
            else {
218
                $out = $value != $value_to_validate;
219
            }
220
        }
221
        elseif (NotInRule::operator === $operator) {
222
            $out = ! in_array($value_to_validate, $value);