Code Duplication    Length = 3-3 lines in 2 locations

classes/PodsForm.php 2 locations

@@ 933-935 (lines=3) @@
930
931
        if ( method_exists( self::$loaded[ $type ], 'value' ) ) {
932
            if ( is_array( $value ) && in_array( $type, self::tableless_field_types() ) ) {
933
                foreach ( $value as &$display_value ) {
934
                    $display_value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
935
                }
936
            }
937
            else
938
                $value = call_user_func_array( array( self::$loaded[ $type ], 'value' ), array( $value, $name, $options, $pod, $id, $traverse ) );
@@ 964-966 (lines=3) @@
961
962
        if ( method_exists( self::$loaded[ $type ], 'display' ) ) {
963
            if ( is_array( $value ) && !in_array( $type, $tableless_field_types ) ) {
964
                foreach ( $value as $k => $display_value ) {
965
                    $value[ $k ] = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $display_value, $name, $options, $pod, $id, $traverse ) );
966
                }
967
            }
968
            else
969
                $value = call_user_func_array( array( self::$loaded[ $type ], 'display' ), array( $value, $name, $options, $pod, $id, $traverse ) );