Code Duplication    Length = 9-9 lines in 2 locations

src/helper/Validate.php 2 locations

@@ 183-191 (lines=9) @@
180
    }
181
}
182
183
if (! function_exists('length_between')) {
184
    function length_between($value, array $args)
185
    {
186
        return run_length_rule(
187
            $value,
188
            get_length($value) < $args[Field::VAR_UPPER_LIMIT] && get_length($value) > $args[Field::VAR_LOWER_LIMIT]
189
        );
190
    }
191
}
192
193
194
if (! function_exists('length_between_or_equal')) {
@@ 194-202 (lines=9) @@
191
}
192
193
194
if (! function_exists('length_between_or_equal')) {
195
    function length_between_or_equal($value, array $args)
196
    {
197
        return run_length_rule(
198
            $value,
199
            get_length($value) <= $args[Field::VAR_UPPER_LIMIT] && get_length($value) >= $args[Field::VAR_LOWER_LIMIT]
200
        );
201
    }
202
}
203
204
if (! function_exists('valid_phone_number')) {
205
    function valid_phone_number($value, array $args)