Code Duplication    Length = 3-3 lines in 2 locations

includes/shortcodes/class-wc-shortcode-checkout.php 1 location

@@ 259-261 (lines=3) @@
256
		do_action( 'woocommerce_before_checkout_form_cart_notices' );
257
258
		// Check cart has contents.
259
		if ( WC()->cart->is_empty() && ! is_customize_preview() && apply_filters( 'woocommerce_checkout_redirect_empty_cart', true ) ) {
260
			return;
261
		}
262
263
		// Check cart contents for errors.
264
		do_action( 'woocommerce_check_cart_items' );

includes/class-wc-ajax.php 1 location

@@ 293-295 (lines=3) @@
290
291
		wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true );
292
293
		if ( WC()->cart->is_empty() && ! is_customize_preview() && apply_filters( 'woocommerce_checkout_update_order_review_expired', true ) ) {
294
			self::update_order_review_expired();
295
		}
296
297
		do_action( 'woocommerce_checkout_update_order_review', isset( $_POST['post_data'] ) ? wp_unslash( $_POST['post_data'] ) : '' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
298