Code Duplication    Length = 6-6 lines in 2 locations

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

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

src/Eccube/Controller/ShoppingController.php 1 location

@@ 565-570 (lines=6) @@
562
        /* @var $form \Symfony\Component\Form\FormInterface */
563
        $builder = $this->formFactory->createNamedBuilder('', CustomerLoginType::class);
564
565
        if ($app->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
566
            $Customer = $app->user();
567
            if ($Customer) {
568
                $builder->get('login_email')->setData($Customer->getEmail());
569
            }
570
        }
571
572
        $event = new EventArgs(
573
            array(