Code Duplication    Length = 6-7 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 2 locations

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