Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

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