Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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