Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 55-60 (lines=6) @@
52
        $builder = $app['form.factory']
53
            ->createNamedBuilder('', 'customer_login');
54
55
        if ($app->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
56
            $Customer = $app->user();
57
            if ($Customer) {
58
                $builder->get('login_email')->setData($Customer->getEmail());
59
            }
60
        }
61
62
        $event = new EventArgs(
63
            array(

src/Eccube/Controller/ShoppingController.php 1 location

@@ 857-862 (lines=6) @@
854
        /* @var $form \Symfony\Component\Form\FormInterface */
855
        $builder = $app['form.factory']->createNamedBuilder('', 'customer_login');
856
857
        if ($app->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
858
            $Customer = $app->user();
859
            if ($Customer) {
860
                $builder->get('login_email')->setData($Customer->getEmail());
861
            }
862
        }
863
864
        $event = new EventArgs(
865
            array(