Code Duplication    Length = 5-5 lines in 2 locations

classes/fields/number.php 1 location

@@ 312-316 (lines=5) @@
309
		$dot         = $format_args['dot'];
310
		$decimals    = $format_args['decimals'];
311
312
		if ( 'i18n' === pods_v( static::$type . '_format', $options ) ) {
313
			$value = number_format_i18n( (float) $value, $decimals );
314
		} else {
315
			$value = number_format( (float) $value, $decimals, $dot, $thousands );
316
		}
317
318
		// Optionally remove trailing decimal zero's.
319
		if ( pods_v( static::$type . '_format_soft', $options, 0 ) ) {

classes/fields/currency.php 1 location

@@ 328-332 (lines=5) @@
325
		$dot         = $format_args['dot'];
326
		$decimals    = $format_args['decimals'];
327
328
		if ( 'i18n' === pods_v( static::$type . '_format', $options ) ) {
329
			$value = number_format_i18n( (float) $value, $decimals );
330
		} else {
331
			$value = number_format( (float) $value, $decimals, $dot, $thousands );
332
		}
333
334
		// Additional output handling for decimals
335
		$decimal_handling = pods_v( static::$type . '_decimal_handling', $options, 'none' );