Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 922-925 (lines=4) @@
919
		$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() );
920
		$item->save();
921
922
		if ( has_action( 'woocommerce_order_add_product' ) ) {
923
			_deprecated_function( 'Action: woocommerce_order_add_product', '2.7', 'Use woocommerce_new_order_item action instead.' );
924
			do_action( 'woocommerce_order_add_product', $this->get_id(), $item->get_id(), $product, $qty, $args );
925
		}
926
927
		return $item->get_id();
928
	}
@@ 1023-1026 (lines=4) @@
1020
		$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() );
1021
		$item->save();
1022
1023
		if ( has_action( 'woocommerce_order_add_shipping' ) ) {
1024
			_deprecated_function( 'Action: woocommerce_order_add_shipping', '2.7', 'Use woocommerce_new_order_item action instead.' );
1025
			do_action( 'woocommerce_order_add_shipping', $this->get_id(), $item->get_id(), $shipping_rate );
1026
		}
1027
1028
		return $item->get_id();
1029
	}
@@ 1051-1054 (lines=4) @@
1048
		$item->set_order_id( $this->get_id() ? $this->get_id() : $this->save() );
1049
		$item->save();
1050
1051
		if ( has_action( 'woocommerce_order_add_fee' ) ) {
1052
			_deprecated_function( 'Action: woocommerce_order_add_fee', '2.7', 'Use woocommerce_new_order_item action instead.' );
1053
			do_action( 'woocommerce_order_add_fee', $this->get_id(), $item->get_id(), $fee );
1054
		}
1055
1056
		return $item->get_id();
1057
	}