Code Duplication    Length = 4-6 lines in 2 locations

classes/fields/currency.php 1 location

@@ 692-697 (lines=6) @@
689
			$decimals = $length;
690
		}
691
692
		if ( 'i18n' == pods_v( self::$type . '_format', $options ) ) {
693
			$value = number_format_i18n( (float) $value, $decimals );
694
		}
695
		else {
696
			$value = number_format( (float) $value, $decimals, $dot, $thousands );
697
		}
698
699
		// Additional output handling for decimals
700
		$decimal_handling = pods_v( self::$type . '_decimal_handling', $options, 'none' ) ;

classes/fields/number.php 1 location

@@ 512-515 (lines=4) @@
509
        if ( $length < $decimals )
510
            $decimals = $length;
511
512
        if ( 'i18n' == pods_var( self::$type . '_format', $options ) )
513
            $value = number_format_i18n( (float) $value, $decimals );
514
        else
515
            $value = number_format( (float) $value, $decimals, $dot, $thousands );
516
517
        // Optionally remove trailing decimal zero's.
518
        if ( pods_v( self::$type . '_format_soft', $options, 0 ) ) {