Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 588-591 (lines=4) @@
585
            $app['eccube.event.dispatcher']->dispatch($event);
586
        });
587
588
        $this->after(function(Request $request, Response $response, \Silex\Application $app) {
589
            $event = 'eccube.event.controller.'.$request->attributes->get('_route').'.after';
590
            $app['eccube.event.dispatcher']->dispatch($event);
591
        });
592
593
        $this->after(function(Request $request, Response $response, \Silex\Application $app) {
594
            $app['eccube.event.dispatcher']->dispatch('eccube.event.app.after');
@@ 597-600 (lines=4) @@
594
            $app['eccube.event.dispatcher']->dispatch('eccube.event.app.after');
595
        }, self::LATE_EVENT);
596
597
        $this->finish(function(Request $request, Response $response, \Silex\Application $app) {
598
            $event = 'eccube.event.controller.'.$request->attributes->get('_route').'.finish';
599
            $app['eccube.event.dispatcher']->dispatch($event);
600
        });
601
602
        $app = $this;
603
        $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) {