Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 667-674 (lines=8) @@
664
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
665
        }, self::EARLY_EVENT);
666
667
        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
668
            if (!$event->isMasterRequest()) {
669
                return;
670
            }
671
            $route = $event->getRequest()->attributes->get('_route');
672
            $hookpoint = "eccube.event.controller.$route.before";
673
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
674
        });
675
676
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
677
            if (!$event->isMasterRequest()) {
@@ 676-683 (lines=8) @@
673
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
674
        });
675
676
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
677
            if (!$event->isMasterRequest()) {
678
                return;
679
            }
680
            $route = $event->getRequest()->attributes->get('_route');
681
            $hookpoint = "eccube.event.controller.$route.after";
682
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
683
        });
684
685
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
686
            if (!$event->isMasterRequest()) {