Code Duplication    Length = 6-6 lines in 2 locations

src/Eccube/Controller/ShoppingController.php 1 location

@@ 523-528 (lines=6) @@
520
        /* @var $form \Symfony\Component\Form\FormInterface */
521
        $builder = $this->formFactory->createNamedBuilder('', CustomerLoginType::class);
522
523
        if ($app->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
524
            $Customer = $app->user();
525
            if ($Customer) {
526
                $builder->get('login_email')->setData($Customer->getEmail());
527
            }
528
        }
529
530
        $event = new EventArgs(
531
            array(

src/Eccube/Controller/Mypage/MypageController.php 1 location

@@ 131-136 (lines=6) @@
128
        $builder = $this->formFactory
129
            ->createNamedBuilder('', CustomerLoginType::class);
130
131
        if ($app->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
132
            $Customer = $app->user();
133
            if ($Customer) {
134
                $builder->get('login_email')->setData($Customer->getEmail());
135
            }
136
        }
137
138
        $event = new EventArgs(
139
            array(