Code Duplication    Length = 4-4 lines in 2 locations

includes/class-wc-tax.php 2 locations

@@ 206-209 (lines=4) @@
203
				$tax_amount = apply_filters( 'woocommerce_price_ex_tax_amount', $tax_amount, $key, $rate, $price );
204
205
				// Add rate
206
				if ( ! isset( $taxes[ $key ] ) )
207
					$taxes[ $key ] = $tax_amount;
208
				else
209
					$taxes[ $key ] += $tax_amount;
210
			}
211
212
			$pre_compound_total = array_sum( $taxes );
@@ 228-231 (lines=4) @@
225
				$tax_amount = apply_filters( 'woocommerce_price_ex_tax_amount', $tax_amount, $key, $rate, $price, $the_price_inc_tax, $pre_compound_total );
226
227
				// Add rate
228
				if ( ! isset( $taxes[ $key ] ) )
229
					$taxes[ $key ] = $tax_amount;
230
				else
231
					$taxes[ $key ] += $tax_amount;
232
			}
233
		}
234