Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 2 locations

@@ 454-459 (lines=6) @@
451
                $errors = $this->customerValidation($app, $data);
452
453
                foreach ($errors as $error) {
454
                    if ($error->count() != 0) {
455
                        log_info('非会員お客様情報変更入力チェックエラー');
456
                        $response = new Response(json_encode('NG'), 400);
457
                        $response->headers->set('Content-Type', 'application/json');
458
                        return $response;
459
                    }
460
                }
461
462
                $pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref']));
@@ 463-468 (lines=6) @@
460
                }
461
462
                $pref = $app['eccube.repository.master.pref']->findOneBy(array('name' => $data['customer_pref']));
463
                if (!$pref) {
464
                    log_info('非会員お客様情報変更入力チェックエラー');
465
                    $response = new Response(json_encode('NG'), 400);
466
                    $response->headers->set('Content-Type', 'application/json');
467
                    return $response;
468
                }
469
470
                $Order = $app['eccube.service.shopping']->getOrder($app['config']['order_processing']);
471
                if (!$Order) {