Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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