Code Duplication    Length = 11-11 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 301-311 (lines=11) @@
298
            return $router;
299
        };
300
301
        $this->extend('request_matcher', function ($matcher, $app) {
302
            $matchers = [];
303
            $matchers[] = $app['eccube.router.extend'];
304
            foreach ($app['eccube.routers.plugin'] as $router) {
305
                $matchers[] = $router;
306
            };
307
            $matchers[] = $app['eccube.router.origin'];
308
            $matchers[] = $matcher;
309
310
            return new ChainUrlMatcher($matchers, $app['request_context']);
311
        });
312
313
        $this->extend('url_generator', function ($generator, $app) {
314
            $generators = [];
@@ 313-323 (lines=11) @@
310
            return new ChainUrlMatcher($matchers, $app['request_context']);
311
        });
312
313
        $this->extend('url_generator', function ($generator, $app) {
314
            $generators = [];
315
            $generators[] = $app['eccube.router.extend'];
316
            foreach ($app['eccube.routers.plugin'] as $router) {
317
                $generators[] = $router;
318
            };
319
            $generators[] = $app['eccube.router.origin'];
320
            $generators[] = $generator;
321
322
            return new ChainUrlGenerator($generators, $app['request_context']);
323
        });
324
325
        // init http cache
326
        $this->initCacheRequest();