Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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