Code Duplication    Length = 4-4 lines in 2 locations

src/Eccube/Application.php 2 locations

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