Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 957-959 (lines=3) @@
954
955
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
956
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
957
                foreach ( $value as &$display_value ) {
958
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
959
                }
960
            }
961
            else
962
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 988-990 (lines=3) @@
985
986
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
987
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
988
                foreach ( $value as $k => $display_value ) {
989
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
990
                }
991
            }
992
            else
993
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );