|
@@ -211,7 +211,7 @@ discard block |
|
|
block discarded – undo |
|
211
|
211
|
{ |
|
212
|
212
|
$query = $this->getCodeFields() + ($this->state ? [Contracts\RFC6749_ABNF_STATE => $this->state] : []); |
|
213
|
213
|
|
|
214
|
|
- return $url . '?' . \http_build_query($query, '', '&', $this->encodingType); |
|
|
214
|
+ return $url.'?'.\http_build_query($query, '', '&', $this->encodingType); |
|
215
|
215
|
} |
|
216
|
216
|
|
|
217
|
217
|
protected function getCodeFields(): array |
|
@@ -240,7 +240,7 @@ discard block |
|
|
block discarded – undo |
|
240
|
240
|
{ |
|
241
|
241
|
if ($response instanceof StreamInterface) { |
|
242
|
242
|
$response->tell() && $response->rewind(); |
|
243
|
|
- $response = (string) $response; |
|
|
243
|
+ $response = (string)$response; |
|
244
|
244
|
} |
|
245
|
245
|
|
|
246
|
246
|
if (\is_string($response)) { |
|
@@ -252,7 +252,7 @@ discard block |
|
|
block discarded – undo |
|
252
|
252
|
} |
|
253
|
253
|
|
|
254
|
254
|
if (empty($response[$this->accessTokenKey])) { |
|
255
|
|
- throw new Exceptions\AuthorizeFailedException('Authorize Failed: ' . Utils::jsonEncode($response, \JSON_UNESCAPED_UNICODE), $response); |
|
|
255
|
+ throw new Exceptions\AuthorizeFailedException('Authorize Failed: '.Utils::jsonEncode($response, \JSON_UNESCAPED_UNICODE), $response); |
|
256
|
256
|
} |
|
257
|
257
|
|
|
258
|
258
|
return $response + [ |
|
@@ -264,7 +264,7 @@ discard block |
|
|
block discarded – undo |
|
264
|
264
|
|
|
265
|
265
|
protected function fromJsonBody(MessageInterface $response): array |
|
266
|
266
|
{ |
|
267
|
|
- $result = Utils::jsonDecode((string) $response->getBody(), true); |
|
|
267
|
+ $result = Utils::jsonDecode((string)$response->getBody(), true); |
|
268
|
268
|
|
|
269
|
269
|
\is_array($result) || throw new Exceptions\InvalidArgumentException('Decoded the given response payload failed.'); |
|
270
|
270
|
|