Code Duplication    Length = 13-13 lines in 2 locations

lib/Filter/DateFilter.php 1 location

@@ 60-72 (lines=13) @@
57
        });
58
    }
59
60
    protected function getComparatorMap(): array
61
    {
62
        $supported = [
63
            Comparison::EQUALS,
64
            Comparison::NOT_EQUALS,
65
            Comparison::GREATER_THAN,
66
            Comparison::GREATER_THAN_EQUAL,
67
            Comparison::LESS_THAN_EQUAL,
68
            Comparison::LESS_THAN,
69
        ];
70
71
        return array_combine($supported, $supported);
72
    }
73
}
74

lib/Filter/NumberFilter.php 1 location

@@ 59-71 (lines=13) @@
56
        });
57
    }
58
59
    protected function getComparatorMap(): array
60
    {
61
        $supported = [
62
            Comparison::EQUALS,
63
            Comparison::NOT_EQUALS,
64
            Comparison::GREATER_THAN,
65
            Comparison::GREATER_THAN_EQUAL,
66
            Comparison::LESS_THAN_EQUAL,
67
            Comparison::LESS_THAN,
68
        ];
69
70
        return array_combine($supported, $supported);
71
    }
72
}
73