@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | $endpoint = Constants::API_VERSION.$this->path.(('GET' === $this->method) ? '?'.http_build_query($this->params) : $authentication_method); |
61 | 61 | $endpoint .= (strstr($endpoint, '?') ? '&' : '?').'sig='.static::generateSignature($this->instagram->getClientSecret(), $this->path, $this->params); |
62 | 62 | |
63 | - $request = HelperFactory::request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method); |
|
64 | - if ($request !== null) { |
|
65 | - $this->response = new InstagramResponse($request); |
|
66 | - $this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining'); |
|
67 | - } else { |
|
68 | - throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400); |
|
69 | - } |
|
63 | + $request = HelperFactory::request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method); |
|
64 | + if ($request !== null) { |
|
65 | + $this->response = new InstagramResponse($request); |
|
66 | + $this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining'); |
|
67 | + } else { |
|
68 | + throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400); |
|
69 | + } |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /* |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function getResponse() |
88 | 88 | { |
89 | - $this->isRateLimitReached(); |
|
89 | + $this->isRateLimitReached(); |
|
90 | 90 | $this->isAccessTokenPresent(); |
91 | 91 | $oauth = $this->instagram->getOAuth(); |
92 | 92 | if (!$oauth->isAccessTokenSet()) { |