Grammar fixes

@return will accept the `|` or operator to define multiple return types. Don't use the word `or`.
This commit is contained in:
Mathew Foscarini 2014-04-30 16:09:53 -04:00
parent c930bbb0b3
commit bb726d58ba

View file

@ -694,10 +694,10 @@ class Router {
}
/**
* 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) {