Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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