From 49901bab31128506a6db80c8d66e28a33f1a482f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 15 Nov 2011 19:46:20 -0600 Subject: [PATCH] tweaking a comment. --- laravel/url.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/laravel/url.php b/laravel/url.php index 6c96aedb..0eca9bcb 100644 --- a/laravel/url.php +++ b/laravel/url.php @@ -98,8 +98,8 @@ public static function to_route($name, $parameters = array(), $https = false) { $uris = explode(', ', key($route)); - // Grab the first URI assigned to the route, removing the request URI - // and leading slash from the destination defined on the route. + // Grab the first URI assigned to the route and remove the URI and + // leading slash from the destination that's defined on the route. $uri = substr($uris[0], strpos($uris[0], '/')); // Spin through each route parameter and replace the route wildcard @@ -110,8 +110,8 @@ public static function to_route($name, $parameters = array(), $https = false) } // Replace all remaining optional segments with spaces. Since the - // segments are, obviously, optional, some of them may not have - // been assigned values from the parameter array. + // segments are optional, some of them may not have been assigned + // values from the parameter array. return static::to(str_replace(array('/(:any?)', '/(:num?)'), '', $uri), $https); }