Skip to content

Commit 27e81eb

Browse files
committed
Update comments
1 parent 0f6f99c commit 27e81eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LocalizedUrlGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public function generateFromRequest(string $locale = null, $parameters = null, b
5454
if ( ! $this->is404()) {
5555
// Use the provided parameter values or get them from the current route.
5656
// Parameters passed to this method may also contain query string parameters.
57-
// Parameters fetched from the current route will never contain query string parameters.
5857
// $parameters can be an array, a function, or it can contain model instances!
58+
// Parameters fetched from the current route will never contain query string parameters.
5959
// Normalize the parameters, so we end up with an array of key => value pairs.
6060
$normalizedParameters = $this->normalizeParameters($locale, $parameters ?: $this->getRouteParameters());
6161

@@ -80,7 +80,7 @@ public function generateFromRequest(string $locale = null, $parameters = null, b
8080
return $url;
8181
}
8282

83-
// If a named route could not be resolved, fill the parameter
83+
// If a named route could not be resolved, replace the parameter
8484
// placeholders in the URI with their values manually.
8585
$uriWithParameterValues = $this->replaceParameterPlaceholders($routeUri, $routePlaceholders);
8686
$urlBuilder->setPath($uriWithParameterValues);

0 commit comments

Comments
 (0)