Code Duplication    Length = 8-8 lines in 2 locations

src/Filterer/PhpFilterer.php 2 locations

@@ 51-58 (lines=8) @@
48
                $result = $value_to_validate == $value;
49
            }
50
        }
51
        elseif (InRule::operator === $operator) {
52
            if ( ! isset($value_to_validate)) {
53
                $result = false;
54
            }
55
            else {
56
                $result = in_array($value_to_validate, $value);
57
            }
58
        }
59
        elseif (BelowRule::operator === $operator) {
60
            if ( ! isset($value_to_validate)) {
61
                $result = false;
@@ 83-90 (lines=8) @@
80
                $result = $value_to_validate != $value;
81
            }
82
        }
83
        elseif (NotInRule::operator === $operator) {
84
            if ( ! isset($value_to_validate)) {
85
                $result = true;
86
            }
87
            else {
88
                $result = ! in_array($value_to_validate, $value);
89
            }
90
        }
91
        else {
92
            throw new \InvalidArgumentException(
93
                "Unhandled operator: " . $operator