Skip to content

Commit 0035fbc

Browse files
committed
Fix CI
1 parent 2bd6b44 commit 0035fbc

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"scripts": {
3030
"test": [
31-
"php-cs-fixer fix --dry-run -v",
31+
"php-cs-fixer fix -v",
3232
"phpmd src text phpmd.xml.dist",
3333
"phpspec run --format=dot"
3434
]

src/Client/Middleware/QueryArrayNormalizer.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function __invoke(callable $handler)
1212
{
1313
return function (RequestInterface $request, array $options) use ($handler) {
1414

15-
$uri = $request->getUri();
15+
$uri = $request->getUri();
1616
$query = $uri->getQuery();
1717

1818
if (!$query) {
@@ -28,9 +28,11 @@ public function __invoke(callable $handler)
2828
foreach ($value as $v) {
2929
$normalized[] = rawurlencode($key) . '=' . rawurlencode((string) $v);
3030
}
31-
} else {
32-
$normalized[] = rawurlencode($key) . '=' . rawurlencode((string) $value);
31+
32+
continue;
3333
}
34+
35+
$normalized[] = rawurlencode($key) . '=' . rawurlencode((string) $value);
3436
}
3537

3638
$newQuery = implode('&', $normalized);
@@ -42,4 +44,4 @@ public function __invoke(callable $handler)
4244
return $handler($request, $options);
4345
};
4446
}
45-
}
47+
}

0 commit comments

Comments
 (0)