Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1860-1863 (lines=4) @@
1857
                    if ( '' != pods_var( $field, 'post', '' ) )
1858
                        $value = 1;
1859
                }
1860
                elseif ( 'number' == $attributes[ 'type' ] ) {
1861
                    $vartype = '%d';
1862
                    $value = number_format( pods_var( $field, 'post', 0 ), 0, '', '' );
1863
                }
1864
                elseif ( 'decimal' == $attributes[ 'type' ] ) {
1865
                    $vartype = '%d';
1866
                    $value = number_format( pods_var( $field, 'post', 0 ), 2, '.', '' );
@@ 1864-1867 (lines=4) @@
1861
                    $vartype = '%d';
1862
                    $value = number_format( pods_var( $field, 'post', 0 ), 0, '', '' );
1863
                }
1864
                elseif ( 'decimal' == $attributes[ 'type' ] ) {
1865
                    $vartype = '%d';
1866
                    $value = number_format( pods_var( $field, 'post', 0 ), 2, '.', '' );
1867
                }
1868
                elseif ( 'related' == $attributes[ 'type' ] ) {
1869
                    if ( is_array( pods_var( $field, 'post', '' ) ) )
1870
                        $value = implode( ',', pods_var( $field, 'post', '' ) );