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())) {
@@ 770-779 (lines=10) @@
767
        }
768
769
        // エラー時はロールバックして購入エラーとする.
770
        if (!$PaymentResult->isSuccess()) {
771
            $this->entityManager->rollback();
772
            foreach ($PaymentResult->getErrors() as $error) {
773
                $this->addError($error);
774
            }
775
776
            log_info('[注文処理] PaymentMethod::checkoutのエラーのため, 購入エラー画面へ遷移します.', [$PaymentResult->getErrors()]);
777
778
            return $this->redirectToRoute('shopping_error');
779
        }
780
    }
781
}
782