Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 647-654 (lines=8) @@
644
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
645
        }, self::EARLY_EVENT);
646
647
        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
648
            if (!$event->isMasterRequest()) {
649
                return;
650
            }
651
            $route = $event->getRequest()->attributes->get('_route');
652
            $hookpoint = "eccube.event.controller.$route.before";
653
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
654
        });
655
656
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
657
            if (!$event->isMasterRequest()) {
@@ 656-663 (lines=8) @@
653
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
654
        });
655
656
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
657
            if (!$event->isMasterRequest()) {
658
                return;
659
            }
660
            $route = $event->getRequest()->attributes->get('_route');
661
            $hookpoint = "eccube.event.controller.$route.after";
662
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
663
        });
664
665
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
666
            if (!$event->isMasterRequest()) {