Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

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