Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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