Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 728-735 (lines=8) @@
725
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
726
        }, self::EARLY_EVENT);
727
728
        $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($app) {
729
            if (!$event->isMasterRequest()) {
730
                return;
731
            }
732
            $route = $event->getRequest()->attributes->get('_route');
733
            $hookpoint = "eccube.event.controller.$route.before";
734
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
735
        });
736
737
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
738
            if (!$event->isMasterRequest()) {
@@ 737-744 (lines=8) @@
734
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
735
        });
736
737
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
738
            if (!$event->isMasterRequest()) {
739
                return;
740
            }
741
            $route = $event->getRequest()->attributes->get('_route');
742
            $hookpoint = "eccube.event.controller.$route.after";
743
            $app['eccube.event.dispatcher']->dispatch($hookpoint, $event);
744
        });
745
746
        $this->on(KernelEvents::RESPONSE, function (FilterResponseEvent $event) use ($app) {
747
            if (!$event->isMasterRequest()) {