Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 612-615 (lines=4) @@
609
            $app['eccube.event.dispatcher']->dispatch($event);
610
        });
611
612
        $this->after(function(Request $request, Response $response, \Silex\Application $app) {
613
            $event = 'eccube.event.controller.'.$request->attributes->get('_route').'.after';
614
            $app['eccube.event.dispatcher']->dispatch($event);
615
        });
616
617
        $this->after(function(Request $request, Response $response, \Silex\Application $app) {
618
            $app['eccube.event.dispatcher']->dispatch('eccube.event.app.after');
@@ 621-624 (lines=4) @@
618
            $app['eccube.event.dispatcher']->dispatch('eccube.event.app.after');
619
        }, self::LATE_EVENT);
620
621
        $this->finish(function(Request $request, Response $response, \Silex\Application $app) {
622
            $event = 'eccube.event.controller.'.$request->attributes->get('_route').'.finish';
623
            $app['eccube.event.dispatcher']->dispatch($event);
624
        });
625
626
        $app = $this;
627
        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {