Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 638-647 (lines=10) @@
635
        });
636
637
        $app = $this;
638
        $app['security.authentication.success_handler.admin'] = $app->share(function ($app) {
639
            $handler = new \Eccube\Security\Http\Authentication\EccubeAuthenticationSuccessHandler(
640
                $app['security.http_utils'],
641
                $app['security.firewalls']['admin']['form']
642
            );
643
644
            $handler->setProviderKey('admin');
645
646
            return $handler;
647
        });
648
649
        $app['security.authentication.failure_handler.admin'] = $app->share(function ($app) {
650
            return new \Eccube\Security\Http\Authentication\EccubeAuthenticationFailureHandler(
@@ 658-667 (lines=10) @@
655
            );
656
        });
657
658
        $app['security.authentication.success_handler.customer'] = $app->share(function ($app) {
659
            $handler = new \Eccube\Security\Http\Authentication\EccubeAuthenticationSuccessHandler(
660
                $app['security.http_utils'],
661
                $app['security.firewalls']['customer']['form']
662
            );
663
664
            $handler->setProviderKey('customer');
665
666
            return $handler;
667
        });
668
669
        $app['security.authentication.failure_handler.customer'] = $app->share(function ($app) {
670
            return new \Eccube\Security\Http\Authentication\EccubeAuthenticationFailureHandler(