Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 628-635 (lines=8) @@
625
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
626
        }, self::EARLY_EVENT);
627
628
        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
629
            if (!$event->isMasterRequest()) {
630
                return;
631
            }
632
            $route = $event->getRequest()->attributes->get('_route');
633
            $hookpoint = "eccube.event.controller.$route.before";
634
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
635
        });
636
637
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
638
            if (!$event->isMasterRequest()) {
@@ 637-644 (lines=8) @@
634
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
635
        });
636
637
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
638
            if (!$event->isMasterRequest()) {
639
                return;
640
            }
641
            $route = $event->getRequest()->attributes->get('_route');
642
            $hookpoint = "eccube.event.controller.$route.after";
643
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
644
        });
645
646
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
647
            if (!$event->isMasterRequest()) {