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())) {
@@ 417-426 (lines=10) @@
414
                }
415
416
                // エラー時はロールバックして購入エラーとする.
417
                if (!$PaymentResult->isSuccess()) {
418
                    $this->entityManager->rollback();
419
                    foreach ($PaymentResult->getErrors() as $error) {
420
                        $this->addError($error);
421
                    }
422
423
                    log_info('[注文処理] PaymentMethod::checkoutのエラーのため, 購入エラー画面へ遷移します.', [$PaymentResult->getErrors()]);
424
425
                    return $this->redirectToRoute('shopping_error');
426
                }
427
428
                $this->entityManager->flush();
429