Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1187-1189 (lines=3) @@
1184
1185
		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {
1186
			$taxes = $item->get_taxes();
1187
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1188
				$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax;
1189
			}
1190
		}
1191
1192
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
@@ 1194-1196 (lines=3) @@
1191
1192
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
1193
			$taxes = $item->get_taxes();
1194
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1195
				$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax;
1196
			}
1197
		}
1198
1199
		// Remove old existing tax rows.