Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 1 location

@@ 278-280 (lines=3) @@
275
276
		wc_maybe_define_constant( 'WOOCOMMERCE_CHECKOUT', true );
277
278
		if ( WC()->cart->is_empty() && ! is_customize_preview() && apply_filters( 'woocommerce_checkout_update_order_review_expired', true ) ) {
279
			self::update_order_review_expired();
280
		}
281
282
		do_action( 'woocommerce_checkout_update_order_review', $_POST['post_data'] );
283

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' );