Code Duplication    Length = 4-4 lines in 2 locations

includes/class-wc-cart.php 2 locations

@@ 2202-2205 (lines=4) @@
2199
		 */
2200
		public function get_taxes_total( $compound = true, $display = true ) {
2201
			$total = 0;
2202
			foreach ( $this->taxes as $key => $tax ) {
2203
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2204
				$total += $tax;
2205
			}
2206
			foreach ( $this->shipping_taxes as $key => $tax ) {
2207
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2208
				$total += $tax;
@@ 2206-2209 (lines=4) @@
2203
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2204
				$total += $tax;
2205
			}
2206
			foreach ( $this->shipping_taxes as $key => $tax ) {
2207
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2208
				$total += $tax;
2209
			}
2210
			if ( $display ) {
2211
				$total = wc_round_tax_total( $total );
2212
			}