Test Setup Failed
Push — master ( ba8aba...70cbb0 )
by Philippe
10:29
created
Classes/Service/OAuth2/GrantType/Password.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
                 'The \'username\' parameter must be defined for the Password grant type',
30 30
                 InvalidArgumentException::MISSING_PARAMETER
31 31
             );
32
-        }
33
-        elseif (!isset($parameters['password']))
32
+        } elseif (!isset($parameters['password']))
34 33
         {
35 34
             throw new InvalidArgumentException(
36 35
                 'The \'password\' parameter must be defined for the Password grant type',
Please login to merge, or discard this patch.
Classes/Service/OAuth2/GrantType/AuthorizationCode.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
                 'The \'code\' parameter must be defined for the Authorization Code grant type',
30 30
                 InvalidArgumentException::MISSING_PARAMETER
31 31
             );
32
-        }
33
-        elseif (!isset($parameters['redirect_uri']))
32
+        } elseif (!isset($parameters['redirect_uri']))
34 33
         {
35 34
             throw new InvalidArgumentException(
36 35
                 'The \'redirect_uri\' parameter must be defined for the Authorization Code grant type',
Please login to merge, or discard this patch.
Classes/Controller/Backend/AccountController.php 1 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.