Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 2 locations

@@ 265-274 (lines=10) @@
262
            $PaymentResult = $paymentMethod->verify();
263
264
            if ($PaymentResult) {
265
                if (!$PaymentResult->isSuccess()) {
266
                    $this->entityManager->rollback();
267
                    foreach ($PaymentResult->getErrors() as $error) {
268
                        $this->addError($error);
269
                    }
270
271
                    log_info('[注文確認] PaymentMethod::verifyのエラーのため, 注文手続き画面へ遷移します.', [$PaymentResult->getErrors()]);
272
273
                    return $this->redirectToRoute('shopping');
274
                }
275
276
                $response = $PaymentResult->getResponse();
277
                if ($response && ($response->isRedirection() || $response->getContent())) {
@@ 768-777 (lines=10) @@
765
        }
766
767
        // エラー時はロールバックして購入エラーとする.
768
        if (!$PaymentResult->isSuccess()) {
769
            $this->entityManager->rollback();
770
            foreach ($PaymentResult->getErrors() as $error) {
771
                $this->addError($error);
772
            }
773
774
            log_info('[注文処理] PaymentMethod::checkoutのエラーのため, 購入エラー画面へ遷移します.', [$PaymentResult->getErrors()]);
775
776
            return $this->redirectToRoute('shopping_error');
777
        }
778
    }
779
}
780