Code Duplication    Length = 11-11 lines in 2 locations

src/Eccube/Application.php 2 locations

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