Code Duplication    Length = 5-5 lines in 2 locations

includes/acf/fields/number.php 2 locations

@@ 258-262 (lines=5) @@
255
		
256
		
257
		// min
258
		if( is_numeric($field['min']) && $value < floatval($field['min'])) {
259
			
260
			$valid = sprintf(__('Value must be equal to or higher than %d', 'acf'), $field['min'] );
261
			
262
		}
263
		
264
		
265
		// max
@@ 266-270 (lines=5) @@
263
		
264
		
265
		// max
266
		if( is_numeric($field['max']) && $value > floatval($field['max']) ) {
267
			
268
			$valid = sprintf(__('Value must be equal to or lower than %d', 'acf'), $field['max'] );
269
			
270
		}
271
		
272
		
273
		// return