Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
54 | 15 | private function addAuthQueryParams(RequestInterface $request): RequestInterface |
|
55 | { |
||
56 | 15 | parse_str($request->getUri()->getQuery(), $params); |
|
57 | 15 | $params['nonce'] = $this->nonce; |
|
58 | 15 | $params['apikey'] = $this->key; |
|
59 | 15 | $uri = $request->getUri()->withQuery(http_build_query($params)); |
|
60 | |||
61 | 15 | return $request->withUri($uri); |
|
62 | } |
||
73 |