Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1240-1242 (lines=3) @@
1237
1238
		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {
1239
			$taxes = $item->get_taxes();
1240
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1241
				$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax;
1242
			}
1243
		}
1244
1245
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
@@ 1247-1249 (lines=3) @@
1244
1245
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
1246
			$taxes = $item->get_taxes();
1247
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1248
				$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax;
1249
			}
1250
		}
1251
1252
		// Remove old existing tax rows.