@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $EP = new OAuth2Token($this->apiURL); |
195 | 195 | $response = $EP->execute($this->credentials)->getResponse(); |
196 | 196 | if ($response->getStatus()=='200'){ |
197 | - $this->setToken($response->getBody(false)); |
|
197 | + $this->setToken($response->getBody(FALSE)); |
|
198 | 198 | static::storeToken($this->token,$this->credentials['client_id']); |
199 | 199 | } else { |
200 | 200 | $error = $response->getBody(); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $EP = new RefreshToken($this->apiURL); |
217 | 217 | $response = $EP->execute($refreshOptions)->getResponse(); |
218 | 218 | if ($response->getStatus()=='200'){ |
219 | - $this->setToken($response->getBody(false)); |
|
219 | + $this->setToken($response->getBody(FALSE)); |
|
220 | 220 | static::storeToken($this->token,$this->credentials['client_id']); |
221 | 221 | }else{ |
222 | 222 | $error = $response->getBody(); |
@@ -249,14 +249,14 @@ discard block |
||
249 | 249 | */ |
250 | 250 | public static function storeToken($token, $client_id) { |
251 | 251 | static::$_STORED_TOKENS[$client_id] = $token; |
252 | - return true; |
|
252 | + return TRUE; |
|
253 | 253 | } |
254 | 254 | |
255 | 255 | /** |
256 | 256 | * @inheritdoc |
257 | 257 | */ |
258 | 258 | public static function getStoredToken($client_id) { |
259 | - return (isset(static::$_STORED_TOKENS[$client_id])?static::$_STORED_TOKENS[$client_id]:null); |
|
259 | + return (isset(static::$_STORED_TOKENS[$client_id])?static::$_STORED_TOKENS[$client_id]:NULL); |
|
260 | 260 | } |
261 | 261 | |
262 | 262 | /** |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | */ |
265 | 265 | public static function removeStoredToken($client_id) { |
266 | 266 | unset(static::$_STORED_TOKENS[$client_id]); |
267 | - return true; |
|
267 | + return TRUE; |
|
268 | 268 | } |
269 | 269 | |
270 | 270 | } |
271 | 271 | \ No newline at end of file |