Code Duplication    Length = 3-3 lines in 2 locations

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

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