Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1374-1376 (lines=3) @@
1371
1372
		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {
1373
			$taxes = $item->get_taxes();
1374
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1375
				$cart_taxes[ $tax_rate_id ] = isset( $cart_taxes[ $tax_rate_id ] ) ? $cart_taxes[ $tax_rate_id ] + $tax : $tax;
1376
			}
1377
		}
1378
1379
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
@@ 1381-1383 (lines=3) @@
1378
1379
		foreach ( $this->get_shipping_methods() as $item_id => $item ) {
1380
			$taxes = $item->get_taxes();
1381
			foreach ( $taxes['total'] as $tax_rate_id => $tax ) {
1382
				$shipping_taxes[ $tax_rate_id ] = isset( $shipping_taxes[ $tax_rate_id ] ) ? $shipping_taxes[ $tax_rate_id ] + $tax : $tax;
1383
			}
1384
		}
1385
1386
		// Remove old existing tax rows.