diff --git a/core/lib/Drupal/Core/Routing/RouteBuilder.php b/core/lib/Drupal/Core/Routing/RouteBuilder.php index e79ab45..c88a033 100644 --- a/core/lib/Drupal/Core/Routing/RouteBuilder.php +++ b/core/lib/Drupal/Core/Routing/RouteBuilder.php @@ -176,7 +176,7 @@ public function rebuild() { ); // Lowercase the path here so that the events get a consistent path, - // even though we force them all to be lower later. + // even though we force them all to be lowercase later. $route = new Route(Unicode::strtolower($route_info['path']), $route_info['defaults'], $route_info['requirements'], $route_info['options'], $route_info['host'], $route_info['schemes'], $route_info['methods'], $route_info['condition']); $collection->add($name, $route); } diff --git a/core/lib/Drupal/Core/Routing/RouteProvider.php b/core/lib/Drupal/Core/Routing/RouteProvider.php index 947c96d..ccfb070 100644 --- a/core/lib/Drupal/Core/Routing/RouteProvider.php +++ b/core/lib/Drupal/Core/Routing/RouteProvider.php @@ -161,7 +161,7 @@ public function getRouteCollectionForRequest(Request $request) { } else { $path = $request->getPathInfo(); - // Just trim on the right side. + // Just trim path on the right side. $path = $path === '/' ? $path : rtrim($path, '/'); $path = $this->pathProcessor->processInbound($path, $request); $this->currentPath->setPath($path, $request); @@ -322,8 +322,8 @@ public function getRoutesByPattern($pattern) { * Get all routes which match a certain pattern. * * @param string $path - * The route pattern to search for (contains % as placeholders). Will be - * converted to lowercase. + * The route pattern to search for (contains % as placeholders) and it will + * be converted to lowercase. * * @return \Symfony\Component\Routing\RouteCollection * Returns a route collection of matching routes.