Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 699-706 (lines=8) @@
696
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
697
        }, self::EARLY_EVENT);
698
699
        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
700
            if (!$event->isMasterRequest()) {
701
                return;
702
            }
703
            $route = $event->getRequest()->attributes->get('_route');
704
            $hookpoint = "eccube.event.controller.$route.before";
705
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
706
        });
707
708
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
709
            if (!$event->isMasterRequest()) {
@@ 708-715 (lines=8) @@
705
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
706
        });
707
708
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
709
            if (!$event->isMasterRequest()) {
710
                return;
711
            }
712
            $route = $event->getRequest()->attributes->get('_route');
713
            $hookpoint = "eccube.event.controller.$route.after";
714
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
715
        });
716
717
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
718
            if (!$event->isMasterRequest()) {