fixed code style

This commit is contained in:
Val Bancer 2017-01-26 23:52:14 +01:00
parent 0c8e3f1977
commit eb00f9aa7d

View file

@ -1087,19 +1087,19 @@ class Router {
return $out; return $out;
} }
/** /**
* Reverses a parsed parameter array into an array. * Reverses a parsed parameter array into an array.
* *
* Works similarly to Router::url(), but since parsed URL's contain additional * Works similarly to Router::url(), but since parsed URL's contain additional
* 'pass' and 'named' as well as 'url.url' keys. Those keys need to be specially * 'pass' and 'named' as well as 'url.url' keys. Those keys need to be specially
* handled in order to reverse a params array into a string URL. * handled in order to reverse a params array into a string URL.
* *
* This will strip out 'autoRender', 'bare', 'requested', and 'return' param names as those * This will strip out 'autoRender', 'bare', 'requested', and 'return' param names as those
* are used for CakePHP internals and should not normally be part of an output URL. * are used for CakePHP internals and should not normally be part of an output URL.
* *
* @param CakeRequest|array $params The params array or CakeRequest object that needs to be reversed. * @param CakeRequest|array $params The params array or CakeRequest object that needs to be reversed.
* @return array The URL array ready to be used for redirect or HTML link. * @return array The URL array ready to be used for redirect or HTML link.
*/ */
public static function reverseToArray($params) { public static function reverseToArray($params) {
if ($params instanceof CakeRequest) { if ($params instanceof CakeRequest) {
$url = $params->query; $url = $params->query;