1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 10:33:18 +01:00

Updating variable to use strict-camel casing like the rest of Guzzle

This commit is contained in:
Michael Dowling 2013-03-11 15:09:57 -07:00
parent a29ab1eb32
commit f62d862501

View File

@ -70,14 +70,14 @@ class QueryString extends Collection
$parts = explode('=', $kvp, 2);
$key = rawurldecode($parts[0]);
$paramIsPHPStyleArray = substr($key, -2) == '[]';
if ($paramIsPHPStyleArray) {
$paramIsPhpStyleArray = substr($key, -2) == '[]';
if ($paramIsPhpStyleArray) {
$key = substr($key, 0, -2);
}
if (array_key_exists(1, $parts)) {
$value = rawurldecode(str_replace('+', '%20', $parts[1]));
if ($paramIsPHPStyleArray && !$q->hasKey($key)) {
if ($paramIsPhpStyleArray && !$q->hasKey($key)) {
$value = array($value);
}
$q->add($key, $value);