Skip to content

Commit

Permalink
Update array usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 3, 2012
1 parent 7cc0872 commit 9fa29d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Routing/RequestActionTrait.php
Expand Up @@ -31,7 +31,7 @@ trait RequestActionTrait {
* or fetch the return value from controller actions.
*
* Under the hood this method uses Router::reverse() to convert the $url parameter into a string
* URL. You should use URL formats that are compatible with Router::reverse()
* URL. You should use URL formats that are compatible with Router::reverse()
*
* #### Passing POST and GET data
*
Expand Down Expand Up @@ -71,9 +71,9 @@ public function requestAction($url, $extra = array()) {
$url = Router::normalize(str_replace(FULL_BASE_URL, '', $url));
}
if (is_string($url)) {
$params = array(
$params = [
'url' => $url
);
];
} elseif (is_array($url)) {
$params = array_merge($url, [
'pass' => [],
Expand Down

0 comments on commit 9fa29d2

Please sign in to comment.