Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'cs/abstract-controller-test-case-closure-braces'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed May 12, 2014
2 parents cc81ee7 + 90cb259 commit 8bc19d0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ public function url($url, $method = HttpRequest::METHOD_GET, $params = array())
$query = array_merge($query, $params);
} elseif ($method == HttpRequest::METHOD_PUT) {
if (count($params) != 0) {
array_walk($params,
function (&$item, $key) { $item = $key . '=' . $item; }
array_walk(
$params,
function (&$item, $key) {
$item = $key . '=' . $item;
}
);
$content = implode('&', $params);
$request->setContent($content);
Expand Down

0 comments on commit 8bc19d0

Please sign in to comment.