Completed
Push — master ( 05fd4c...3832c8 )
by Philippe
11:18
created
Classes/Utility/ClientUtility.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,13 +74,13 @@
 block discarded – undo
74 74
                 $params = array('code' => $code, 'redirect_uri' => $this->getRedirectUri($this->account));
75 75
                 $response = $this->OAuth->getAccessToken(self::TOKEN_ENDPOINT, 'authorization_code', $params);
76 76
 
77
-                if( $response ){
78
-                    if( $response['code'] == 200 ){
77
+                if ($response) {
78
+                    if ($response['code'] == 200) {
79 79
                         $this->account->setAccessToken($response['result']['access_token']);
80 80
                         $this->persistenceManager->update($this->account);
81 81
                         $this->persistenceManager->persistAll();
82 82
                         return true;
83
-                    }else {
83
+                    } else {
84 84
                         return false;
85 85
                     }
86 86
                 } else {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                         $this->persistenceManager->update($this->account);
81 81
                         $this->persistenceManager->persistAll();
82 82
                         return true;
83
-                    }else {
83
+                    } else {
84 84
                         return false;
85 85
                     }
86 86
                 } else {
Please login to merge, or discard this patch.