|
@@ -208,7 +208,7 @@ |
|
|
block discarded – undo |
|
208
|
208
|
protected function execute($endpoint, $options, $method = 'GET') { |
|
209
|
209
|
try { |
|
210
|
210
|
$result = $result = $this->client->request($method, $endpoint, [ |
|
211
|
|
- 'headers' => [ 'Accept' => 'application/json' ], |
|
|
211
|
+ 'headers' => ['Accept' => 'application/json'], |
|
212
|
212
|
'body' => ('GET' !== $method) ? is_array($options) ? http_build_query($options) : ltrim($options, '&') : null |
|
213
|
213
|
]); |
|
214
|
214
|
$limit = $result->getHeader('x-ratelimit-remaining'); |
Please login to merge, or discard this patch.