Completed
Push — master ( 8a4daa...fd2b7f )
by Philippe
02:17
created
ext_localconf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined ('TYPO3_MODE')) die ('Access denied.');
2
+if (!defined('TYPO3_MODE')) die ('Access denied.');
3 3
 
4 4
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
5 5
     'Filoucrackeur.' . $_EXTKEY,
Please login to merge, or discard this patch.
Classes/Domain/Repository/AccountRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 use TYPO3\CMS\Extbase\Persistence\Repository;
19 19
 use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
20 20
 
21
-class AccountRepository extends  Repository  {
21
+class AccountRepository extends  Repository {
22 22
 
23 23
     // Order by BE sorting
24 24
     protected $defaultOrderings = array(
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     );
27 27
 
28 28
 
29
-    public function initializeObject(){
29
+    public function initializeObject() {
30 30
         /** @var $defaultQuerySettings \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */
31 31
         $defaultQuerySettings = $this->objectManager->get('TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings');
32 32
 
Please login to merge, or discard this patch.
Classes/Domain/Model/Account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 use TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject;
19 19
 
20
-class Account extends AbstractDomainObject  {
20
+class Account extends AbstractDomainObject {
21 21
 
22 22
     /**
23 23
      * @var \string
Please login to merge, or discard this patch.
Classes/Controller/Backend/AccountController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@
 block discarded – undo
91 91
      */
92 92
     public function authenticationResponseAction(Account $account)
93 93
     {
94
-        if( $this->client->callHubic($account) ){
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
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@
 block discarded – undo
70 70
                 $params = array('code' => $code, 'redirect_uri' => $this->getRedirectUri($this->account));
71 71
                 $response = $this->OAuth->getAccessToken(self::TOKEN_ENDPOINT, 'authorization_code', $params);
72 72
 
73
-                if( $response ){
74
-                    if( $response['code'] == 200 ){
73
+                if ($response) {
74
+                    if ($response['code'] == 200) {
75 75
                         $this->account->setAccessToken($response['result']['access_token']);
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.
ext_tables.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     if (version_compare(TYPO3_version, '7.6.0', '>=')) {
12 12
         \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
13 13
             'Filoucrackeur.hubic',
14
-            'tools',          // Main area
15
-            'hubic',         // Name of the module
16
-            '',             // Position of the module
14
+            'tools', // Main area
15
+            'hubic', // Name of the module
16
+            '', // Position of the module
17 17
             array(          // Allowed controller action combinations
18 18
                 'Backend\Account' => 'index,show,delete,add,unlink,authenticationRequest,authenticationResponse'
19 19
             ),
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 }
29 29
 
30 30
 
31
-$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_list']='layout,select_key,pages,recursive';
32
-$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_list']='pi_flexform';
31
+$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_list'] = 'layout,select_key,pages,recursive';
32
+$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_list'] = 'pi_flexform';
33 33
        // new!
34 34
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
35
-    $_EXTKEY.'_list',
35
+    $_EXTKEY . '_list',
36 36
     'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml'
37 37
 );
Please login to merge, or discard this patch.