Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1846-1849 (lines=4) @@
1843
                    if ( '' != pods_var( $field, 'post', '' ) )
1844
                        $value = 1;
1845
                }
1846
                elseif ( 'number' == $attributes[ 'type' ] ) {
1847
                    $vartype = '%d';
1848
                    $value = number_format( pods_var( $field, 'post', 0 ), 0, '', '' );
1849
                }
1850
                elseif ( 'decimal' == $attributes[ 'type' ] ) {
1851
                    $vartype = '%d';
1852
                    $value = number_format( pods_var( $field, 'post', 0 ), 2, '.', '' );
@@ 1850-1853 (lines=4) @@
1847
                    $vartype = '%d';
1848
                    $value = number_format( pods_var( $field, 'post', 0 ), 0, '', '' );
1849
                }
1850
                elseif ( 'decimal' == $attributes[ 'type' ] ) {
1851
                    $vartype = '%d';
1852
                    $value = number_format( pods_var( $field, 'post', 0 ), 2, '.', '' );
1853
                }
1854
                elseif ( 'related' == $attributes[ 'type' ] ) {
1855
                    if ( is_array( pods_var( $field, 'post', '' ) ) )
1856
                        $value = implode( ',', pods_var( $field, 'post', '' ) );