Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 656-663 (lines=8) @@
653
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
654
        }, self::EARLY_EVENT);
655
656
        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
657
            if (!$event->isMasterRequest()) {
658
                return;
659
            }
660
            $route = $event->getRequest()->attributes->get('_route');
661
            $hookpoint = "eccube.event.controller.$route.before";
662
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
663
        });
664
665
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
666
            if (!$event->isMasterRequest()) {
@@ 665-672 (lines=8) @@
662
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
663
        });
664
665
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
666
            if (!$event->isMasterRequest()) {
667
                return;
668
            }
669
            $route = $event->getRequest()->attributes->get('_route');
670
            $hookpoint = "eccube.event.controller.$route.after";
671
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
672
        });
673
674
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
675
            if (!$event->isMasterRequest()) {