Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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