Browse Source

Merge pull request #10906 from Iandenh/patch

An URL to a URL
ADmad 8 years ago
parent
commit
120578920a
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/Routing/RouteBuilder.php
  2. 3 3
      src/Routing/Router.php

+ 2 - 2
src/Routing/RouteBuilder.php

@@ -551,7 +551,7 @@ class RouteBuilder
      * ```
      *
      * Redirects /home/* to /posts/view and passes the parameters to /posts/view. Using an array as the
-     * redirect destination allows you to use other routes to define where an URL string should be redirected to.
+     * redirect destination allows you to use other routes to define where a URL string should be redirected to.
      *
      * ```
      * $routes->redirect('/posts/*', 'http://google.com', ['status' => 302]);
@@ -566,7 +566,7 @@ class RouteBuilder
      *   routes that end in `*` are greedy. As you can remap URLs and not loose any passed args.
      *
      * @param string $route A string describing the template of the route
-     * @param array|string $url An URL to redirect to. Can be a string or a Cake array-based URL
+     * @param array|string $url A URL to redirect to. Can be a string or a Cake array-based URL
      * @param array $options An array matching the named elements in the route to regular expressions which that
      *   element should match. Also contains additional parameters such as which routed parameters should be
      *   shifted into the passed arguments. As well as supplying patterns for routing parameters.

+ 3 - 3
src/Routing/Router.php

@@ -215,7 +215,7 @@ class Router
      * Compatibility proxy to \Cake\Routing\RouteBuilder::redirect() in the `/` scope.
      *
      * @param string $route A string describing the template of the route
-     * @param array $url An URL to redirect to. Can be a string or a Cake array-based URL
+     * @param array $url A URL to redirect to. Can be a string or a Cake array-based URL
      * @param array $options An array matching the named elements in the route to regular expressions which that
      *   element should match. Also contains additional parameters such as which routed parameters should be
      *   shifted into the passed arguments. As well as supplying patterns for routing parameters.
@@ -559,7 +559,7 @@ class Router
     /**
      * Finds URL for specified action.
      *
-     * Returns an URL pointing to a combination of controller and action.
+     * Returns a URL pointing to a combination of controller and action.
      *
      * ### Usage
      *
@@ -772,7 +772,7 @@ class Router
     }
 
     /**
-     * Normalizes an URL for purposes of comparison.
+     * Normalizes a URL for purposes of comparison.
      *
      * Will strip the base path off and replace any double /'s.
      * It will not unify the casing and underscoring of the input value.