Code Duplication    Length = 11-11 lines in 2 locations

src/Kunstmaan/MultiDomainBundle/Router/DomainBasedLocaleRouter.php 1 location

@@ 244-254 (lines=11) @@
241
    /**
242
     * @param string $name
243
     */
244
    protected function addMultiLangRoute($name, array $parameters = [])
245
    {
246
        $this->routeCollectionMultiLanguage->add(
247
            $name,
248
            new Route(
249
                $parameters['path'],
250
                $parameters['defaults'],
251
                $parameters['requirements']
252
            )
253
        );
254
    }
255
256
    /**
257
     * Return slug route parameters

src/Kunstmaan/NodeBundle/Router/SlugRouter.php 1 location

@@ 335-345 (lines=11) @@
332
    /**
333
     * @param string $name
334
     */
335
    protected function addRoute($name, array $parameters = [])
336
    {
337
        $this->routeCollection->add(
338
            $name,
339
            new Route(
340
                $parameters['path'],
341
                $parameters['defaults'],
342
                $parameters['requirements']
343
            )
344
        );
345
    }
346
347
    /**
348
     * @param array $matchResult