Completed
Push — master ( 58c56f...b758c3 )
by Philippe
02:23
created
ext_localconf.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined ('TYPO3_MODE')) die ('Access denied.');
2
+if (!defined ('TYPO3_MODE')) {
3
+    die ('Access denied.');
4
+}
3 5
 
4 6
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
5 7
     'Filoucrackeur.' . $_EXTKEY,
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
@@ -93,7 +93,7 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
Classes/Utility/ClientUtility.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
                         $this->persistenceManager->update($this->account);
77 77
                         $this->persistenceManager->persistAll();
78 78
                         return true;
79
-                    }else {
79
+                    } else {
80 80
                         return false;
81 81
 //                        throw new \Exception('hubiC Api :  '.implode(' ',$response['result']));
82 82
                     }
Please login to merge, or discard this patch.
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.