Code Duplication    Length = 11-11 lines in 2 locations

src/Eccube/Application.php 2 locations

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