Code Duplication    Length = 3-3 lines in 2 locations

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

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