Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-coupon.php 2 locations

@@ 908-910 (lines=3) @@
905
	 * @throws Exception
906
	 */
907
	private function validate_minimum_amount() {
908
		if ( $this->get_minimum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_minimum_amount', $this->get_minimum_amount() > WC()->cart->get_displayed_subtotal(), $this ) ) {
909
			throw new Exception( self::E_WC_COUPON_MIN_SPEND_LIMIT_NOT_MET );
910
		}
911
	}
912
913
	/**
@@ 919-921 (lines=3) @@
916
	 * @throws Exception
917
	 */
918
	private function validate_maximum_amount() {
919
		if ( $this->get_maximum_amount() > 0 && apply_filters( 'woocommerce_coupon_validate_maximum_amount', $this->get_maximum_amount() < WC()->cart->get_displayed_subtotal(), $this ) ) {
920
			throw new Exception( self::E_WC_COUPON_MAX_SPEND_LIMIT_MET );
921
		}
922
	}
923
924
	/**