mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fixed code style
This commit is contained in:
parent
0c8e3f1977
commit
eb00f9aa7d
1 changed files with 13 additions and 13 deletions
|
@ -1087,19 +1087,19 @@ class Router {
|
|||
return $out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverses a parsed parameter array into an array.
|
||||
*
|
||||
* 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
|
||||
* 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
|
||||
* 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.
|
||||
* @return array The URL array ready to be used for redirect or HTML link.
|
||||
*/
|
||||
/**
|
||||
* Reverses a parsed parameter array into an array.
|
||||
*
|
||||
* 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
|
||||
* 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
|
||||
* 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.
|
||||
* @return array The URL array ready to be used for redirect or HTML link.
|
||||
*/
|
||||
public static function reverseToArray($params) {
|
||||
if ($params instanceof CakeRequest) {
|
||||
$url = $params->query;
|
||||
|
|
Loading…
Reference in a new issue