Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/FloatConverter.php 1 location

@@ 131-144 (lines=14) @@
128
     *
129
     * @return int
130
     */
131
    private function getStorageDefValidatorState($minValue, $maxValue)
132
    {
133
        $state = 0;
134
135
        if ($minValue !== null) {
136
            $state |= self::HAS_MIN_VALUE;
137
        }
138
139
        if ($maxValue !== null) {
140
            $state |= self::HAS_MAX_VALUE;
141
        }
142
143
        return $state;
144
    }
145
}
146

eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/IntegerConverter.php 1 location

@@ 137-150 (lines=14) @@
134
     *
135
     * @return int
136
     */
137
    private function getStorageDefValidatorState($minValue, $maxValue)
138
    {
139
        $state = 0;
140
141
        if ($minValue !== null) {
142
            $state |= self::HAS_MIN_VALUE;
143
        }
144
145
        if ($maxValue !== null) {
146
            $state |= self::HAS_MAX_VALUE;
147
        }
148
149
        return $state;
150
    }
151
}
152