Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-coupon.php 2 locations

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