Code Duplication    Length = 4-4 lines in 2 locations

includes/class-wc-cart.php 2 locations

@@ 2175-2178 (lines=4) @@
2172
		 */
2173
		public function get_taxes_total( $compound = true, $display = true ) {
2174
			$total = 0;
2175
			foreach ( $this->taxes as $key => $tax ) {
2176
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2177
				$total += $tax;
2178
			}
2179
			foreach ( $this->shipping_taxes as $key => $tax ) {
2180
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2181
				$total += $tax;
@@ 2179-2182 (lines=4) @@
2176
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2177
				$total += $tax;
2178
			}
2179
			foreach ( $this->shipping_taxes as $key => $tax ) {
2180
				if ( ! $compound && WC_Tax::is_compound( $key ) ) continue;
2181
				$total += $tax;
2182
			}
2183
			if ( $display ) {
2184
				$total = wc_round_tax_total( $total );
2185
			}