@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | public function testImmutability(): void |
28 | 28 | { |
29 | - $requestSigner = new RequestSigner( |
|
29 | + $requestSigner = new RequestSigner( |
|
30 | 30 | new ConsumerKey('consumer_key'), |
31 | 31 | new ConsumerSecret('consumer_secret') |
32 | 32 | ); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | 'oauth_token' => false, |
53 | 53 | 'oauth_signature' => false, |
54 | 54 | ]; |
55 | - $captureValues = [ |
|
55 | + $captureValues = [ |
|
56 | 56 | 'oauth_consumer_key' => '', |
57 | 57 | 'oauth_nonce' => '', |
58 | 58 | 'oauth_signature_method' => '', |
@@ -61,13 +61,13 @@ discard block |
||
61 | 61 | 'oauth_token' => '', |
62 | 62 | 'oauth_signature' => '', |
63 | 63 | ]; |
64 | - $request = new Request( |
|
64 | + $request = new Request( |
|
65 | 65 | 'POST', |
66 | 66 | 'httpx://example.com/', |
67 | 67 | ['Content-Type' => 'application/x-www-form-urlencoded'], |
68 | 68 | 'foo=bar&bar=baz' |
69 | 69 | ); |
70 | - $requestSigner = (new RequestSigner( |
|
70 | + $requestSigner = (new RequestSigner( |
|
71 | 71 | new ConsumerKey('consumer_key'), |
72 | 72 | new ConsumerSecret('consumer_secret'), |
73 | 73 | new HmacSha512Signature( |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | 'oauth_signature' => false, |
133 | 133 | 'extra_test_to_make_sure_this_is_included' => true, |
134 | 134 | ]; |
135 | - $captureValues = [ |
|
135 | + $captureValues = [ |
|
136 | 136 | 'oauth_consumer_key' => '', |
137 | 137 | 'oauth_nonce' => '', |
138 | 138 | 'oauth_signature_method' => '', |
@@ -142,13 +142,13 @@ discard block |
||
142 | 142 | 'oauth_signature' => '', |
143 | 143 | 'extra_test_to_make_sure_this_is_included' => '', |
144 | 144 | ]; |
145 | - $request = new Request( |
|
145 | + $request = new Request( |
|
146 | 146 | 'POST', |
147 | 147 | 'httpx://example.com/', |
148 | 148 | [], |
149 | 149 | 'foo=bar&bar=baz' |
150 | 150 | ); |
151 | - $requestSigner = new RequestSigner( |
|
151 | + $requestSigner = new RequestSigner( |
|
152 | 152 | new ConsumerKey('consumer_key'), |
153 | 153 | new ConsumerSecret('consumer_secret') |
154 | 154 | ); |
@@ -143,7 +143,7 @@ |
||
143 | 143 | { |
144 | 144 | $header = 'OAuth '; |
145 | 145 | foreach ($parameters as $key => $value) { |
146 | - $header .= rawurlencode($key) . '="' . rawurlencode($value) . '",'; |
|
146 | + $header .= rawurlencode($key).'="'.rawurlencode($value).'",'; |
|
147 | 147 | } |
148 | 148 | |
149 | 149 | return rtrim($header, ','); |
@@ -62,8 +62,8 @@ |
||
62 | 62 | |
63 | 63 | ksort($data); |
64 | 64 | |
65 | - array_walk($data, static function (string &$value, string $key): void { |
|
66 | - $value = $key . '=' . $value; |
|
65 | + array_walk($data, static function(string &$value, string $key): void { |
|
66 | + $value = $key.'='.$value; |
|
67 | 67 | }); |
68 | 68 | |
69 | 69 | $baseString[] = rawurlencode(implode('&', $data)); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | final protected function getKey(): string |
38 | 38 | { |
39 | - $key = rawurlencode((string) $this->consumerSecret) . '&'; |
|
39 | + $key = rawurlencode((string) $this->consumerSecret).'&'; |
|
40 | 40 | |
41 | 41 | if ($this->tokenSecret instanceof TokenSecret) { |
42 | 42 | $key .= rawurlencode((string) $this->tokenSecret); |