Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

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