Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/ServiceProvider/EccubePluginServiceProvider.php 2 locations

@@ 96-103 (lines=8) @@
93
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
94
        }, Application::EARLY_EVENT);
95
96
        $app->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
97
            if (!$event->isMasterRequest()) {
98
                return;
99
            }
100
            $route = $event->getRequest()->attributes->get('_route');
101
            $hookpoint = "eccube.event.controller.$route.before";
102
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
103
        });
104
105
        $app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
106
            if (!$event->isMasterRequest()) {
@@ 105-112 (lines=8) @@
102
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
103
        });
104
105
        $app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
106
            if (!$event->isMasterRequest()) {
107
                return;
108
            }
109
            $route = $event->getRequest()->attributes->get('_route');
110
            $hookpoint = "eccube.event.controller.$route.after";
111
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
112
        });
113
114
        $app->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
115
            if (!$event->isMasterRequest()) {