Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 1866-1869 (lines=4) @@
1863
                    if ( '' != pods_var( $field, 'post', '' ) )
1864
                        $value = 1;
1865
                }
1866
                elseif ( 'number' == $attributes[ 'type' ] ) {
1867
                    $vartype = '%d';
1868
                    $value = number_format( pods_var( $field, 'post', 0 ), 0, '', '' );
1869
                }
1870
                elseif ( 'decimal' == $attributes[ 'type' ] ) {
1871
                    $vartype = '%d';
1872
                    $value = number_format( pods_var( $field, 'post', 0 ), 2, '.', '' );
@@ 1870-1873 (lines=4) @@
1867
                    $vartype = '%d';
1868
                    $value = number_format( pods_var( $field, 'post', 0 ), 0, '', '' );
1869
                }
1870
                elseif ( 'decimal' == $attributes[ 'type' ] ) {
1871
                    $vartype = '%d';
1872
                    $value = number_format( pods_var( $field, 'post', 0 ), 2, '.', '' );
1873
                }
1874
                elseif ( 'related' == $attributes[ 'type' ] ) {
1875
                    if ( is_array( pods_var( $field, 'post', '' ) ) )
1876
                        $value = implode( ',', pods_var( $field, 'post', '' ) );