Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 865-867 (lines=3) @@
862
863
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
864
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
865
                foreach ( $value as &$display_value ) {
866
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
867
                }
868
            }
869
            else
870
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 896-898 (lines=3) @@
893
894
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
895
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
896
                foreach ( $value as $k => $display_value ) {
897
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
898
                }
899
            }
900
            else
901
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );