Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-order-item-meta.php 1 location

@@ 117-119 (lines=3) @@
114
115
		if ( ! empty( $this->item['item_meta_array'] ) ) {
116
			foreach ( $this->item['item_meta_array'] as $meta_id => $meta ) {
117
				if ( "" === $meta->value || is_serialized( $meta->value ) || ( ! empty( $hideprefix ) && substr( $meta->key, 0, 1 ) === $hideprefix ) ) {
118
					continue;
119
				}
120
121
				$attribute_key = urldecode( str_replace( 'attribute_', '', $meta->key ) );
122
				$meta_value    = $meta->value;

includes/class-wc-order-item.php 1 location

@@ 297-299 (lines=3) @@
294
		$meta_data      = $this->get_meta_data();
295
296
		foreach ( $meta_data as $meta ) {
297
			if ( "" === $meta->value || is_serialized( $meta->value ) || ( ! empty( $hideprefix ) && substr( $meta->key, 0, 1 ) === $hideprefix ) ) {
298
				continue;
299
			}
300
301
			$meta->key     = rawurldecode( $meta->key );
302
			$meta->value   = rawurldecode( $meta->value );