Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

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