Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
33 | 7 | private function getOauthParameters(): string |
|
34 | { |
||
35 | 7 | $oauthParameters = array_map('rawurlencode', $this->parameters->getAll()); |
|
36 | |||
37 | 7 | asort($oauthParameters); |
|
38 | 7 | ksort($oauthParameters); |
|
39 | |||
40 | // we are first `urldecode`ing the value, because `http_build_query` converts spaces to + |
||
41 | 7 | return rawurlencode(urldecode(http_build_query($oauthParameters, '', '&'))); |
|
42 | } |
||
43 | } |
||
44 |