Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-coupon.php 2 locations

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