Code Duplication    Length = 10-10 lines in 2 locations

lib/Filter/DateFilter.php 1 location

@@ 33-42 (lines=10) @@
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getExpression(string $fieldName, FilterDataInterface $data): Expression
34
    {
35
        $comparator = $data->getComparator() ?: self::TYPE_EQUAL;
36
37
        return Query::comparison(
38
            $comparator,
39
            $fieldName,
40
            $data->getValue()
41
        );
42
    }
43
44
    /**
45
     * {@inheritdoc}

lib/Filter/NumberFilter.php 1 location

@@ 33-42 (lines=10) @@
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getExpression(string $fieldName, FilterDataInterface $data): Expression
34
    {
35
        $comparator = $data->getComparator() ?: Comparison::EQUALS;
36
37
        return Query::comparison(
38
            $comparator,
39
            $fieldName,
40
            $data->getValue()
41
        );
42
    }
43
44
    /**
45
     * {@inheritdoc}