Code Duplication    Length = 4-4 lines in 3 locations

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

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