Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 637-640 (lines=4) @@
634
            $app['eccube.event.dispatcher']->dispatch($event);
635
        });
636
637
        $this->after(function(Request $request, Response $response, \Silex\Application $app) {
638
            $event = 'eccube.event.controller.'.$request->attributes->get('_route').'.after';
639
            $app['eccube.event.dispatcher']->dispatch($event);
640
        });
641
642
        $this->after(function(Request $request, Response $response, \Silex\Application $app) {
643
            $app['eccube.event.dispatcher']->dispatch('eccube.event.app.after');
@@ 646-649 (lines=4) @@
643
            $app['eccube.event.dispatcher']->dispatch('eccube.event.app.after');
644
        }, self::LATE_EVENT);
645
646
        $this->finish(function(Request $request, Response $response, \Silex\Application $app) {
647
            $event = 'eccube.event.controller.'.$request->attributes->get('_route').'.finish';
648
            $app['eccube.event.dispatcher']->dispatch($event);
649
        });
650
651
        $app = $this;
652
        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {