Code Duplication    Length = 4-4 lines in 2 locations

includes/class-wc-cart.php 2 locations

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