Skip to content
Permalink
Browse files

Fix doc block errors.

  • Loading branch information...
markstory committed Jul 7, 2014
1 parent a1ad72f commit 72ee388de43fa16d73d209f15ee6482e942e3ca2
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/Routing/RouteCollection.php
@@ -83,8 +83,9 @@ public function add(Route $route, $options) {
/**
* Takes the URL string and iterates the routes until one is able to parse the route.
*
* @param string $url Url to parse.
* @return array An array of request parameters parsed from the url.
* @param string $url URL to parse.
* @return array An array of request parameters parsed from the URL.
* @throws \Cake\Routing\Error\MissingRouteException When a URL has no matching route.
*/
public function parse($url) {
foreach (array_keys($this->_paths) as $path) {
@@ -200,9 +201,10 @@ protected function _getNames($url) {
* @param array $context The request context to use. Contains _base, _port,
* _host, and _scheme keys.
* @return string|false Either a string on match, or false on failure.
* @throws \Cake\Routing\Error\MissingRouteException when a route cannot be matched.
*/
public function match($url, $context) {
// Named routes support hack.
// Named routes support optimization.
if (isset($url['_name'])) {
$name = $url['_name'];
unset($url['_name']);

0 comments on commit 72ee388

Please sign in to comment.
You can’t perform that action at this time.