Code Duplication    Length = 7-7 lines in 2 locations

src/helper/Validate.php 2 locations

@@ 171-177 (lines=7) @@
168
    }
169
}
170
171
if (! function_exists('length_between')) {
172
    function length_between($value, array $args)
173
    {
174
        check_is_valid_type_for_length($value);
175
        return get_length($value) < $args[Field::VAR_UPPER_LIMIT] && get_length($value) > $args[Field::VAR_LOWER_LIMIT];
176
    }
177
}
178
179
180
if (! function_exists('length_between_or_equal')) {
@@ 180-186 (lines=7) @@
177
}
178
179
180
if (! function_exists('length_between_or_equal')) {
181
    function length_between_or_equal($value, array $args)
182
    {
183
        check_is_valid_type_for_length($value);
184
        return get_length($value) <= $args[Field::VAR_UPPER_LIMIT] && get_length($value) >= $args[Field::VAR_LOWER_LIMIT];
185
    }
186
}