Code Duplication    Length = 6-7 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 2 locations

@@ 277-283 (lines=7) @@
274
                }
275
276
                $response = $PaymentResult->getResponse();
277
                if ($response && ($response->isRedirection() || $response->getContent())) {
278
                    $this->entityManager->flush();
279
280
                    log_info('[注文確認] PaymentMethod::verifyが指定したレスポンスを表示します.');
281
282
                    return $response;
283
                }
284
            }
285
286
            $this->entityManager->flush();
@@ 762-767 (lines=6) @@
759
        $PaymentResult = $paymentMethod->checkout();
760
        $response = $PaymentResult->getResponse();
761
        // PaymentResultがresponseを保持している場合はresponseを返す
762
        if ($response && ($response->isRedirection() || $response->getContent())) {
763
            $this->entityManager->flush();
764
            log_info('[注文処理] PaymentMethod::checkoutが指定したレスポンスを表示します.');
765
766
            return $response;
767
        }
768
769
        // エラー時はロールバックして購入エラーとする.
770
        if (!$PaymentResult->isSuccess()) {