Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-coupon.php 2 locations

@@ 974-976 (lines=3) @@
971
	 * @throws Exception
972
	 */
973
	private function validate_minimum_amount() {
974
		if ( $this->get_minimum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_minimum_amount', $this->get_minimum_amount() > WC()->cart->get_displayed_subtotal(), $this ) ) {
975
			throw new Exception( self::E_WC_COUPON_MIN_SPEND_LIMIT_NOT_MET );
976
		}
977
	}
978
979
	/**
@@ 985-987 (lines=3) @@
982
	 * @throws Exception
983
	 */
984
	private function validate_maximum_amount() {
985
		if ( $this->get_maximum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_maximum_amount', $this->get_maximum_amount() < WC()->cart->get_displayed_subtotal(), $this ) ) {
986
			throw new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );
987
		}
988
	}
989
990
	/**