Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 2 locations

@@ 819-824 (lines=6) @@
816
                $errors = $this->customerValidation($app, $data);
817
818
                foreach ($errors as $error) {
819
                    if ($error->count() != 0) {
820
                        log_info('非会員お客様情報変更入力チェックエラー');
821
                        $response = new Response(json_encode('NG'), 400);
822
                        $response->headers->set('Content-Type', 'application/json');
823
                        return $response;
824
                    }
825
                }
826
827
                $pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref']));
@@ 828-833 (lines=6) @@
825
                }
826
827
                $pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref']));
828
                if (!$pref) {
829
                    log_info('非会員お客様情報変更入力チェックエラー');
830
                    $response = new Response(json_encode('NG'), 400);
831
                    $response->headers->set('Content-Type', 'application/json');
832
                    return $response;
833
                }
834
835
                $Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']);
836
                if (!$Order) {