Code Duplication    Length = 4-6 lines in 2 locations

classes/fields/currency.php 1 location

@@ 684-689 (lines=6) @@
681
			$decimals = $length;
682
		}
683
684
		if ( 'i18n' == pods_v( self::$type . '_format', $options ) ) {
685
			$value = number_format_i18n( (float) $value, $decimals );
686
		}
687
		else {
688
			$value = number_format( (float) $value, $decimals, $dot, $thousands );
689
		}
690
691
		return $value;
692

classes/fields/number.php 1 location

@@ 500-503 (lines=4) @@
497
        if ( $length < $decimals )
498
            $decimals = $length;
499
500
        if ( 'i18n' == pods_var( self::$type . '_format', $options ) )
501
            $value = number_format_i18n( (float) $value, $decimals );
502
        else
503
            $value = number_format( (float) $value, $decimals, $dot, $thousands );
504
505
        return $value;
506
    }