Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

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