| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 1.2963 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 1 | public static function queryParam(string $name, string $value): callable |
|
| 21 | { |
||
| 22 | return \GuzzleHttp\Middleware::mapRequest(function (RequestInterface $request) use ($name, $value) { |
||
| 23 | $uri = Uri::withQueryValue($request->getUri(), $name, $value); |
||
| 24 | |||
| 25 | return $request->withUri($uri); |
||
| 26 | 1 | }); |
|
| 29 |