Test Setup Failed
Push — master ( ba8aba...70cbb0 )
by Philippe
10:29
created
Classes/Utility/ClientUtility.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 
57 57
 
58 58
     /**
59
-     * @param ObjectManager $objectManager
59
+     * @param Account $objectManager
60 60
      */
61 61
     public function injectAccount(ObjectManager $objectManager) {
62 62
         $this->objectManager = $objectManager;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@
 block discarded – undo
97 97
                 $params = array('code' => $code, 'redirect_uri' => $this->getRedirectUri($this->account));
98 98
                 $response = $this->OAuth->getAccessToken(self::TOKEN_ENDPOINT, 'authorization_code', $params);
99 99
 
100
-                if( $response ){
101
-                    if( $response['code'] == 200 ){
100
+                if ($response) {
101
+                    if ($response['code'] == 200) {
102 102
                         $this->account->setAccessToken($response['result']['access_token']);
103 103
                         $this->persistenceManager->update($this->account);
104 104
                         $this->persistenceManager->persistAll();
Please login to merge, or discard this patch.
Classes/Controller/Backend/AccountController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,9 +115,9 @@
 block discarded – undo
115 115
      */
116 116
     public function authenticationResponseAction(Account $account) : void
117 117
     {
118
-        if( $this->client->callHubic($account) ){
118
+        if ($this->client->callHubic($account)) {
119 119
             $this->addFlashMessage('Token successfully added', 'Authentication request', AbstractMessage::OK);
120
-        }else {
120
+        } else {
121 121
             $this->addFlashMessage('Failed getting token please check client ID and client secret', 'Authentication request', AbstractMessage::ERROR);
122 122
         }
123 123
         $this->redirect('show', '', '', ['account' => $account]);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     {
118 118
         if( $this->client->callHubic($account) ){
119 119
             $this->addFlashMessage('Token successfully added', 'Authentication request', AbstractMessage::OK);
120
-        }else {
120
+        } else {
121 121
             $this->addFlashMessage('Failed getting token please check client ID and client secret', 'Authentication request', AbstractMessage::ERROR);
122 122
         }
123 123
         $this->redirect('show', '', '', ['account' => $account]);
Please login to merge, or discard this patch.