Code Duplication    Length = 6-6 lines in 2 locations

includes/abstracts/abstract-wc-order.php 2 locations

@@ 317-322 (lines=6) @@
314
									do_action( 'woocommerce_add_order_fee_meta', $this->get_id(), $item_id, $item->legacy_fee, $item->legacy_fee_key );
315
								}
316
							break;
317
							case 'shipping_lines' :
318
								if ( has_action( 'woocommerce_add_shipping_order_item' ) && isset( $item->legacy_package_key ) ) {
319
									_deprecated_function( 'Action: woocommerce_add_shipping_order_item', '2.7', 'Use woocommerce_new_order_item action instead.' );
320
									do_action( 'woocommerce_add_shipping_order_item', $item_id, $item->legacy_package_key );
321
								}
322
							break;
323
							case 'line_items' :
324
								if ( has_action( 'woocommerce_add_order_item_meta' ) && isset( $item->legacy_values, $item->legacy_cart_item_key ) ) {
325
									_deprecated_function( 'Action: woocommerce_add_order_item_meta', '2.7', 'Use woocommerce_new_order_item action instead.' );
@@ 323-328 (lines=6) @@
320
									do_action( 'woocommerce_add_shipping_order_item', $item_id, $item->legacy_package_key );
321
								}
322
							break;
323
							case 'line_items' :
324
								if ( has_action( 'woocommerce_add_order_item_meta' ) && isset( $item->legacy_values, $item->legacy_cart_item_key ) ) {
325
									_deprecated_function( 'Action: woocommerce_add_order_item_meta', '2.7', 'Use woocommerce_new_order_item action instead.' );
326
									do_action( 'woocommerce_add_order_item_meta', $item_id, $item->legacy_values, $item->legacy_cart_item_key );
327
								}
328
							break;
329
						}
330
					}
331
				}