Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 2 locations

@@ 270-279 (lines=10) @@
267
            $PaymentResult = $paymentMethod->verify();
268
269
            if ($PaymentResult) {
270
                if (!$PaymentResult->isSuccess()) {
271
                    $this->entityManager->rollback();
272
                    foreach ($PaymentResult->getErrors() as $error) {
273
                        $this->addError($error);
274
                    }
275
276
                    log_info('[注文確認] PaymentMethod::verifyのエラーのため, 注文手続き画面へ遷移します.', [$PaymentResult->getErrors()]);
277
278
                    return $this->redirectToRoute('shopping');
279
                }
280
281
                $response = $PaymentResult->getResponse();
282
                if ($response && ($response->isRedirection() || $response->getContent())) {
@@ 406-415 (lines=10) @@
403
                }
404
405
                // エラー時はロールバックして購入エラーとする.
406
                if (!$PaymentResult->isSuccess()) {
407
                    $this->entityManager->rollback();
408
                    foreach ($PaymentResult->getErrors() as $error) {
409
                        $this->addError($error);
410
                    }
411
412
                    log_info('[注文処理] PaymentMethod::checkoutのエラーのため, 購入エラー画面へ遷移します.', [$PaymentResult->getErrors()]);
413
414
                    return $this->redirectToRoute('shopping_error');
415
                }
416
417
                $this->entityManager->flush();
418