Skip to content

Commit

Permalink
Fix doc block errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 7, 2014
1 parent a1ad72f commit 72ee388
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Routing/RouteCollection.php
Expand Up @@ -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) {
Expand Down Expand Up @@ -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']);
Expand Down

0 comments on commit 72ee388

Please sign in to comment.