Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

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