@@ -166,12 +166,12 @@ |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | // If access token is not set or token has expired, acquire new token |
| 169 | - if (empty($this->accessToken)){ |
|
| 170 | - $this->acquireAccessToken(); |
|
| 171 | - }else if($this->tokenHasExpired()){ |
|
| 172 | - return 'expired'; |
|
| 173 | - /*throw new Exception("token is expired and need to update");*/ |
|
| 174 | - } |
|
| 169 | + if (empty($this->accessToken)){ |
|
| 170 | + $this->acquireAccessToken(); |
|
| 171 | + }else if($this->tokenHasExpired()){ |
|
| 172 | + return 'expired'; |
|
| 173 | + /*throw new Exception("token is expired and need to update");*/ |
|
| 174 | + } |
|
| 175 | 175 | |
| 176 | 176 | $client = $this->client(); |
| 177 | 177 | |