Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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