Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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