Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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