Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 861-863 (lines=3) @@
858
859
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
860
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
861
                foreach ( $value as &$display_value ) {
862
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
863
                }
864
            }
865
            else
866
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 892-894 (lines=3) @@
889
890
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
891
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
892
                foreach ( $value as $k => $display_value ) {
893
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
894
                }
895
            }
896
            else
897
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );