Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

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