Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 604-611 (lines=8) @@
601
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
602
        }, self::EARLY_EVENT);
603
604
        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
605
            if (!$event->isMasterRequest()) {
606
                return;
607
            }
608
            $route = $event->getRequest()->attributes->get('_route');
609
            $hookpoint = "eccube.event.controller.$route.before";
610
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
611
        });
612
613
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
614
            if (!$event->isMasterRequest()) {
@@ 613-620 (lines=8) @@
610
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
611
        });
612
613
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
614
            if (!$event->isMasterRequest()) {
615
                return;
616
            }
617
            $route = $event->getRequest()->attributes->get('_route');
618
            $hookpoint = "eccube.event.controller.$route.after";
619
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
620
        });
621
622
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
623
            if (!$event->isMasterRequest()) {