Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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