Passed
Push — master ( 83718d...54d9ab )
by Mike
02:44
created
src/Client/Abstracts/AbstractClient.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.