Code Duplication    Length = 9-9 lines in 2 locations

src/helper/Validate.php 2 locations

@@ 190-198 (lines=9) @@
187
    }
188
}
189
190
if (! function_exists('length_between')) {
191
    function length_between($value, array $args)
192
    {
193
        return run_length_rule(
194
            $value,
195
            get_length($value) < $args[Field::VAR_UPPER_LIMIT] && get_length($value) > $args[Field::VAR_LOWER_LIMIT]
196
        );
197
    }
198
}
199
200
201
if (! function_exists('length_between_or_equal')) {
@@ 201-209 (lines=9) @@
198
}
199
200
201
if (! function_exists('length_between_or_equal')) {
202
    function length_between_or_equal($value, array $args)
203
    {
204
        return run_length_rule(
205
            $value,
206
            get_length($value) <= $args[Field::VAR_UPPER_LIMIT] && get_length($value) >= $args[Field::VAR_LOWER_LIMIT]
207
        );
208
    }
209
}
210
211
if (! function_exists('valid_phone_number')) {
212
    function valid_phone_number($value, array $args)