Code Duplication    Length = 5-5 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 2 locations

@@ 580-584 (lines=5) @@
577
        }
578
579
        // カートチェック
580
        if (count($cartService->getCart()->getCartItems()) <= 0) {
581
            // カートが存在しない時はエラー
582
            log_info('カートに商品が入っていないためショッピングカート画面にリダイレクト');
583
            return $app->redirect($app->url('cart'));
584
        }
585
586
        $builder = $app['form.factory']->createBuilder(NonMemberType::class);
587
@@ 1165-1169 (lines=5) @@
1162
        }
1163
1164
        // カートチェック
1165
        if (count($cartService->getCart()->getCartItems()) <= 0) {
1166
            log_info('カートに商品が入っていないためショッピングカート画面にリダイレクト');
1167
            // カートが存在しない時はエラー
1168
            return $app->redirect($app->url('cart'));
1169
        }
1170
        return new Response();
1171
    }
1172