Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-coupon.php 2 locations

@@ 966-968 (lines=3) @@
963
	 * @throws Exception
964
	 */
965
	private function validate_minimum_amount() {
966
		if ( $this->get_minimum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_minimum_amount', $this->get_minimum_amount() > WC()->cart->get_displayed_subtotal(), $this ) ) {
967
			throw new Exception( self::E_WC_COUPON_MIN_SPEND_LIMIT_NOT_MET );
968
		}
969
	}
970
971
	/**
@@ 977-979 (lines=3) @@
974
	 * @throws Exception
975
	 */
976
	private function validate_maximum_amount() {
977
		if ( $this->get_maximum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_maximum_amount', $this->get_maximum_amount() < WC()->cart->get_displayed_subtotal(), $this ) ) {
978
			throw new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );
979
		}
980
	}
981
982
	/**