diff -ru src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php --- src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php 2024-09-14 14:58:33.802610515 +0000 +++ src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php 2024-09-14 14:58:35.013653134 +0000 @@ -120,7 +120,7 @@ } else { $sortBy = $input->getOption('sort'); if ($sortBy) { - $routes = $this->sortBy($routes, \strtolower($sortBy)); + $routes = $this->sortBy($routes, strtolower($sortBy)); } $helper->describe($io, $routes, [ 'format' => $input->getOption('format'), @@ -185,7 +185,7 @@ $sortedRoutes = new RouteCollection(); if ('name' === $column) { - \ksort($routesArray); + ksort($routesArray); foreach ($routesArray as $name => $route) { $sortedRoutes->add($name, $route); $sortedRoutes->addAlias($route->getDefault('_controller'), $name); @@ -198,14 +198,14 @@ if ('method' === $column) { foreach ($routesArray as $name => $route) { - $methods = empty($route->getMethods()) ? 'ANY' : \implode('|', $route->getMethods()); + $methods = empty($route->getMethods()) ? 'ANY' : implode('|', $route->getMethods()); $helperArray[$methods][$name] = $route; } } if ('scheme' === $column) { foreach ($routesArray as $name => $route) { - $scheme = empty($route->getSchemes()) ? 'ANY' : \implode('|', $route->getSchemes()); + $scheme = empty($route->getSchemes()) ? 'ANY' : implode('|', $route->getSchemes()); $helperArray[$scheme][$name] = $route; } } @@ -213,7 +213,6 @@ if ('host' === $column) { foreach ($routesArray as $name => $route) { $helperArray[$route->getHost()][$name] = $route; - } } @@ -223,7 +222,7 @@ } } - \ksort($helperArray); + ksort($helperArray); foreach ($helperArray as $array) { foreach ($array as $name => $route) { $sortedRoutes->add($name, $route);