@@ -93,7 +93,7 @@ |
||
93 | 93 | { |
94 | 94 | if( $this->client->callHubic($account) ){ |
95 | 95 | $this->addFlashMessage('Token successfully added', 'Authentication request', \TYPO3\CMS\Core\Messaging\AbstractMessage::OK); |
96 | - }else { |
|
96 | + } else { |
|
97 | 97 | $this->addFlashMessage('Failed getting token please check client ID and client secret', 'Authentication request', \TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR); |
98 | 98 | } |
99 | 99 | $this->redirect('show', '', '', ['account' => $account]); |
@@ -29,8 +29,7 @@ |
||
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', |
@@ -29,8 +29,7 @@ |
||
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', |
@@ -80,7 +80,7 @@ |
||
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 { |