Code Duplication    Length = 13-13 lines in 2 locations

lib/Filter/DateFilter.php 1 location

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

lib/Filter/NumberFilter.php 1 location

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