Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-coupon.php 2 locations

@@ 956-958 (lines=3) @@
953
	 * @throws Exception
954
	 */
955
	private function validate_minimum_amount() {
956
		if ( $this->get_minimum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_minimum_amount', $this->get_minimum_amount() > WC()->cart->get_displayed_subtotal(), $this ) ) {
957
			throw new Exception( self::E_WC_COUPON_MIN_SPEND_LIMIT_NOT_MET );
958
		}
959
	}
960
961
	/**
@@ 967-969 (lines=3) @@
964
	 * @throws Exception
965
	 */
966
	private function validate_maximum_amount() {
967
		if ( $this->get_maximum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_maximum_amount', $this->get_maximum_amount() < WC()->cart->get_displayed_subtotal(), $this ) ) {
968
			throw new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );
969
		}
970
	}
971
972
	/**