@@ -20,8 +20,8 @@ |
||
20 | 20 | if (empty($oauth)) { |
21 | 21 | throw new InstagramOAuthException("Bad Request 400 empty Response", 400); |
22 | 22 | } |
23 | - $this->accessToken = $oauth->access_token; |
|
24 | - $this->user = isset($oauth->user) ? $oauth->user : null; |
|
23 | + $this->accessToken = $oauth->access_token; |
|
24 | + $this->user = isset($oauth->user) ? $oauth->user : null; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /* |
@@ -42,7 +42,7 @@ |
||
42 | 42 | if (!$response instanceof Response) { |
43 | 43 | throw new InstagramResponseException('Bad Request: Response is not valid instance of GuzzleHttp\Psr7\Response', 404); |
44 | 44 | } |
45 | - $this->setParams($response); |
|
45 | + $this->setParams($response); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /* |
@@ -63,10 +63,10 @@ |
||
63 | 63 | $request = $helper->request($this->instagram->getHttpClient(), $endpoint, $this->params, $this->method); |
64 | 64 | |
65 | 65 | if ($request === null) { |
66 | - throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400); |
|
66 | + throw new InstagramResponseException("400 Bad Request: instanceof InstagramResponse cannot be null", 400); |
|
67 | 67 | } |
68 | - $this->response = new InstagramResponse($request); |
|
69 | - $this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining'); |
|
68 | + $this->response = new InstagramResponse($request); |
|
69 | + $this->xRateLimitRemaining = $this->response->getHeader('X-Ratelimit-Remaining'); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /* |