Code Duplication    Length = 11-11 lines in 2 locations

src/Eccube/Application.php 2 locations

@@ 322-332 (lines=11) @@
319
            return $router;
320
        };
321
322
        $this->extend('request_matcher', function ($matcher, $app) {
323
            $matchers = [];
324
            $matchers[] = $app['eccube.router.extend'];
325
            foreach ($app['eccube.routers.plugin'] as $router) {
326
                $matchers[] = $router;
327
            };
328
            $matchers[] = $app['eccube.router.origin'];
329
            $matchers[] = $matcher;
330
331
            return new ChainUrlMatcher($matchers, $app['request_context']);
332
        });
333
334
        $this->extend('url_generator', function ($generator, $app) {
335
            $generators = [];
@@ 334-344 (lines=11) @@
331
            return new ChainUrlMatcher($matchers, $app['request_context']);
332
        });
333
334
        $this->extend('url_generator', function ($generator, $app) {
335
            $generators = [];
336
            $generators[] = $app['eccube.router.extend'];
337
            foreach ($app['eccube.routers.plugin'] as $router) {
338
                $generators[] = $router;
339
            };
340
            $generators[] = $app['eccube.router.origin'];
341
            $generators[] = $generator;
342
343
            return new ChainUrlGenerator($generators, $app['request_context']);
344
        });
345
346
        // Route CollectionにEC-CUBEで定義したルーティングを追加(debug tool barに出力するため)
347
        $this->extend('routes', function ($routes, $app) {