Skip to content

Commit

Permalink
Grammar fixes
Browse files Browse the repository at this point in the history
@return will accept the `|` or operator to define multiple return types. Don't use the word `or`.
  • Loading branch information
Mathew Foscarini committed Apr 30, 2014
1 parent c930bbb commit bb726d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Routing/Router.php
Expand Up @@ -694,10 +694,10 @@ public static function popRequest() {
}

/**
* Get the either the current request object, or the first one.
* Gets the current request object, or the first one.
*
* @param boolean $current Whether you want the request from the top of the stack or the first one.
* @return CakeRequest or null.
* @param boolean $current True to get the current request object, or False to get the first one.
* @return CakeRequest|null Null if stack is empty.
*/
public static function getRequest($current = false) {
if ($current) {
Expand Down

0 comments on commit bb726d5

Please sign in to comment.