Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1212-1214 (lines=3) @@
1209
1210
		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {
1211
			$taxes = $item->get_taxes();
1212
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1213
				$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax;
1214
			}
1215
		}
1216
1217
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
@@ 1219-1221 (lines=3) @@
1216
1217
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
1218
			$taxes = $item->get_taxes();
1219
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1220
				$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax;
1221
			}
1222
		}
1223
1224
		// Remove old existing tax rows.