Code Duplication    Length = 3-3 lines in 2 locations

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

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