Passed
Pull Request — master (#198)
by Daniel
05:34
created
Classes/Base.php 1 patch
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
 use \TYPO3\CMS\Core\Utility\GeneralUtility;
15 15
 
16 16
 
17
-$aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('aimeos');
17
+$aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath( 'aimeos' );
18 18
 
19
-if (file_exists($aimeosExtPath . '/Resources/Libraries/autoload.php') === true) {
19
+if( file_exists( $aimeosExtPath . '/Resources/Libraries/autoload.php' ) === true ) {
20 20
     require_once $aimeosExtPath . '/Resources/Libraries/autoload.php';
21 21
 }
22 22
 
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $name = 'Aimeos\Aimeos\Base\Aimeos';
42 42
 
43
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos'])) {
44
-            if (($name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos']) instanceof \Closure) {
43
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos'] ) ) {
44
+            if( ( $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos'] ) instanceof \Closure ) {
45 45
                 return $name();
46 46
             }
47 47
         }
@@ -56,17 +56,17 @@  discard block
 block discarded – undo
56 56
      * @param array $local Multi-dimensional associative list with local configuration
57 57
      * @return \Aimeos\Base\Config\Iface Configuration object
58 58
      */
59
-    public static function config(array $local = []) : \Aimeos\Base\Config\Iface
59
+    public static function config( array $local = [] ) : \Aimeos\Base\Config\Iface
60 60
     {
61 61
         $name = 'Aimeos\Aimeos\Base\Config';
62 62
 
63
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_config'])) {
64
-            if (($name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_config']) instanceof \Closure) {
65
-                return $name(self::aimeos()->getConfigPaths(), $local);
63
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_config'] ) ) {
64
+            if( ( $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_config'] ) instanceof \Closure ) {
65
+                return $name( self::aimeos()->getConfigPaths(), $local );
66 66
             }
67 67
         }
68 68
 
69
-        return $name::get(self::aimeos()->getConfigPaths(), $local);
69
+        return $name::get( self::aimeos()->getConfigPaths(), $local );
70 70
     }
71 71
 
72 72
 
@@ -76,17 +76,17 @@  discard block
 block discarded – undo
76 76
      * @param \Aimeos\Base\Config\Iface Configuration object
77 77
      * @return \Aimeos\MShop\ContextIface Context object
78 78
      */
79
-    public static function context(\Aimeos\Base\Config\Iface $config) : \Aimeos\MShop\ContextIface
79
+    public static function context( \Aimeos\Base\Config\Iface $config ) : \Aimeos\MShop\ContextIface
80 80
     {
81 81
         $name = 'Aimeos\Aimeos\Base\Context';
82 82
 
83
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_context'])) {
84
-            if (($name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_context']) instanceof \Closure) {
85
-                return $name($config);
83
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_context'] ) ) {
84
+            if( ( $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_context'] ) instanceof \Closure ) {
85
+                return $name( $config );
86 86
             }
87 87
         }
88 88
 
89
-        return $name::get($config);
89
+        return $name::get( $config );
90 90
     }
91 91
 
92 92
 
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
      * @param mixed Value returned if no value in extension configuration was found
98 98
      * @return mixed Value associated with the configuration setting
99 99
      */
100
-    public static function getExtConfig(string $name, $default = null)
100
+    public static function getExtConfig( string $name, $default = null )
101 101
     {
102
-        if (self::$extConfig === null) {
103
-            self::$extConfig = GeneralUtility::makeInstance('TYPO3\CMS\Core\Configuration\ExtensionConfiguration')->get('aimeos');
102
+        if( self::$extConfig === null ) {
103
+            self::$extConfig = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\Configuration\ExtensionConfiguration' )->get( 'aimeos' );
104 104
         }
105 105
 
106
-        if (isset(self::$extConfig[$name])) {
106
+        if( isset( self::$extConfig[$name] ) ) {
107 107
             return self::$extConfig[$name];
108 108
         }
109 109
 
@@ -118,17 +118,17 @@  discard block
 block discarded – undo
118 118
      * @param array $local List of local translation entries overwriting the standard ones
119 119
      * @return array List of translation objects implementing MW_Translation_Interface
120 120
      */
121
-    public static function i18n(array $languageIds, array $local = []) : array
121
+    public static function i18n( array $languageIds, array $local = [] ) : array
122 122
     {
123 123
         $name = 'Aimeos\Aimeos\Base\I18n';
124 124
 
125
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_i18n'])) {
126
-            if (($name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_i18n']) instanceof \Closure) {
127
-                return $name(self::aimeos()->getI18nPaths(), $languageIds, $local);
125
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_i18n'] ) ) {
126
+            if( ( $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_i18n'] ) instanceof \Closure ) {
127
+                return $name( self::aimeos()->getI18nPaths(), $languageIds, $local );
128 128
             }
129 129
         }
130 130
 
131
-        return $name::get(self::aimeos()->getI18nPaths(), $languageIds, $local);
131
+        return $name::get( self::aimeos()->getI18nPaths(), $languageIds, $local );
132 132
     }
133 133
 
134 134
 
@@ -139,22 +139,22 @@  discard block
 block discarded – undo
139 139
      * @param \TYPO3\CMS\Extbase\Mvc\RequestInterface|null $request Request object
140 140
      * @return \Aimeos\MShop\Locale\Item\Iface Locale item object
141 141
      */
142
-    public static function locale(\Aimeos\MShop\ContextIface $context,
143
-        \TYPO3\CMS\Extbase\Mvc\RequestInterface $request = null) : \Aimeos\MShop\Locale\Item\Iface
142
+    public static function locale( \Aimeos\MShop\ContextIface $context,
143
+        \TYPO3\CMS\Extbase\Mvc\RequestInterface $request = null ) : \Aimeos\MShop\Locale\Item\Iface
144 144
     {
145
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_frontend'])) {
146
-            if (($name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_frontend']) instanceof \Closure) {
147
-                return $name($context, $request);
145
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_frontend'] ) ) {
146
+            if( ( $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_frontend'] ) instanceof \Closure ) {
147
+                return $name( $context, $request );
148 148
             }
149 149
         }
150 150
 
151 151
         $name = 'Aimeos\Aimeos\Base\Locale';
152 152
 
153
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale'])) {
153
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale'] ) ) {
154 154
             $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale'];
155 155
         }
156 156
 
157
-        return $name::get($context, $request);
157
+        return $name::get( $context, $request );
158 158
     }
159 159
 
160 160
 
@@ -165,22 +165,22 @@  discard block
 block discarded – undo
165 165
      * @param string $sitecode Unique site code
166 166
      * @return \Aimeos\MShop\Locale\Item\Iface Locale item object
167 167
      */
168
-    public static function getLocaleBackend(\Aimeos\MShop\ContextIface $context,
169
-        string $sitecode) : \Aimeos\MShop\Locale\Item\Iface
168
+    public static function getLocaleBackend( \Aimeos\MShop\ContextIface $context,
169
+        string $sitecode ) : \Aimeos\MShop\Locale\Item\Iface
170 170
     {
171
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_backend'])) {
172
-            if (($name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_backend']) instanceof \Closure) {
173
-                return $name($context, $sitecode);
171
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_backend'] ) ) {
172
+            if( ( $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale_backend'] ) instanceof \Closure ) {
173
+                return $name( $context, $sitecode );
174 174
             }
175 175
         }
176 176
 
177 177
         $name = 'Aimeos\Aimeos\Base\Locale';
178 178
 
179
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale'])) {
179
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale'] ) ) {
180 180
             $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_locale'];
181 181
         }
182 182
 
183
-        return $name::getBackend($context, $sitecode);
183
+        return $name::getBackend( $context, $sitecode );
184 184
     }
185 185
 
186 186
 
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
     public static function getVersion() : string
193 193
     {
194 194
         $match = [];
195
-        $content = @file_get_contents(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'ext_emconf.php');
195
+        $content = @file_get_contents( dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'ext_emconf.php' );
196 196
 
197
-        if (preg_match("/'version' => '([^']+)'/", $content, $match) === 1) {
197
+        if( preg_match( "/'version' => '([^']+)'/", $content, $match ) === 1 ) {
198 198
             return $match[1];
199 199
         }
200 200
 
@@ -212,18 +212,18 @@  discard block
 block discarded – undo
212 212
      * @param string|null $langid ISO code of the current language ("de"/"de_CH") or null for no translation
213 213
      * @return \Aimeos\Base\View\Iface View object
214 214
      */
215
-    public static function view(\Aimeos\MShop\ContextIface $context, $uriBuilder, array $templatePaths,
216
-        \TYPO3\CMS\Extbase\Mvc\RequestInterface $request = null, string $langid = null) : \Aimeos\Base\View\Iface
215
+    public static function view( \Aimeos\MShop\ContextIface $context, $uriBuilder, array $templatePaths,
216
+        \TYPO3\CMS\Extbase\Mvc\RequestInterface $request = null, string $langid = null ) : \Aimeos\Base\View\Iface
217 217
     {
218 218
         $name = 'Aimeos\Aimeos\Base\View';
219 219
 
220
-        if (isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_view'])) {
221
-            if (($name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_view']) instanceof \Closure) {
222
-                return $name($context, $uriBuilder, $templatePaths, $request, $langid);
220
+        if( isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_view'] ) ) {
221
+            if( ( $name = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['aimeos']['aimeos_view'] ) instanceof \Closure ) {
222
+                return $name( $context, $uriBuilder, $templatePaths, $request, $langid );
223 223
             }
224 224
         }
225 225
 
226
-        return $name::get($context, $uriBuilder, $templatePaths, $request, $langid);
226
+        return $name::get( $context, $uriBuilder, $templatePaths, $request, $langid );
227 227
     }
228 228
 
229 229
 
@@ -234,24 +234,24 @@  discard block
 block discarded – undo
234 234
      * @return array Mulit-dimensional, associative list of key/value pairs
235 235
      * @throws Exception If parsing the configuration string fails
236 236
      */
237
-    public static function parseTS(string $tsString) : array
237
+    public static function parseTS( string $tsString ) : array
238 238
     {
239
-        $parser = GeneralUtility::makeInstance('TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser');
240
-        $parser->parse(TypoScriptParser::checkIncludeLines($tsString));
239
+        $parser = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser' );
240
+        $parser->parse( TypoScriptParser::checkIncludeLines( $tsString ) );
241 241
 
242
-        if (!empty($parser->errors)) {
243
-            throw new \InvalidArgumentException('Invalid TypoScript: \"' . $tsString . "\"\n" . print_r($parser->errors, true));
242
+        if( !empty( $parser->errors ) ) {
243
+            throw new \InvalidArgumentException( 'Invalid TypoScript: \"' . $tsString . "\"\n" . print_r( $parser->errors, true ) );
244 244
         }
245 245
 
246
-        $service = GeneralUtility::makeInstance('TYPO3\CMS\Core\TypoScript\TypoScriptService');
247
-        $tsConfig = $service->convertTypoScriptArrayToPlainArray($parser->setup);
246
+        $service = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\TypoScript\TypoScriptService' );
247
+        $tsConfig = $service->convertTypoScriptArrayToPlainArray( $parser->setup );
248 248
 
249 249
         // Allows "plugin.tx_aimeos.settings." prefix everywhere
250
-        if (isset($tsConfig['plugin']['tx_aimeos']['settings'])
251
-            && is_array($tsConfig['plugin']['tx_aimeos']['settings'])
250
+        if( isset( $tsConfig['plugin']['tx_aimeos']['settings'] )
251
+            && is_array( $tsConfig['plugin']['tx_aimeos']['settings'] )
252 252
         ) {
253
-            $tsConfig = array_replace_recursive($tsConfig['plugin']['tx_aimeos']['settings'], $tsConfig);
254
-            unset($tsConfig['plugin']['tx_aimeos']);
253
+            $tsConfig = array_replace_recursive( $tsConfig['plugin']['tx_aimeos']['settings'], $tsConfig );
254
+            unset( $tsConfig['plugin']['tx_aimeos'] );
255 255
         }
256 256
 
257 257
         return $tsConfig;
@@ -265,10 +265,10 @@  discard block
 block discarded – undo
265 265
      */
266 266
     public static function logout()
267 267
     {
268
-        $session = self::context(self::config())->session();
268
+        $session = self::context( self::config() )->session();
269 269
 
270
-        $session->remove(array_keys($session->get('aimeos/basket/list', [])));
271
-        $session->remove(array_keys($session->get('aimeos/basket/cache', [])));
270
+        $session->remove( array_keys( $session->get( 'aimeos/basket/list', [] ) ) );
271
+        $session->remove( array_keys( $session->get( 'aimeos/basket/cache', [] ) ) );
272 272
     }
273 273
 
274 274
 
@@ -281,11 +281,11 @@  discard block
 block discarded – undo
281 281
      *
282 282
      * @return void
283 283
      */
284
-    public static function clearCache(array $cacheType)
284
+    public static function clearCache( array $cacheType )
285 285
     {
286
-        if (isset($cacheType['cacheCmd']) && $cacheType['cacheCmd'] === 'all'
287
-            && (bool) static::getExtConfig('useAPC', false) === true
288
-            && function_exists('apcu_clear_cache')
286
+        if( isset( $cacheType['cacheCmd'] ) && $cacheType['cacheCmd'] === 'all'
287
+            && (bool) static::getExtConfig( 'useAPC', false ) === true
288
+            && function_exists( 'apcu_clear_cache' )
289 289
         ) {
290 290
             apcu_clear_cache();
291 291
         }
Please login to merge, or discard this patch.
Classes/Setup.php 3 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,8 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function executeUpdate() : bool
72 72
     {
73
-        try {
73
+        try
74
+        {
74 75
             ob_start();
75 76
             $exectimeStart = microtime(true);
76 77
 
@@ -78,7 +79,9 @@  discard block
 block discarded – undo
78 79
 
79 80
             $this->output->writeln(ob_get_clean());
80 81
             $this->output->writeln(sprintf('Setup process lasted %1$f sec', (microtime(true) - $exectimeStart)));
81
-        } catch(\Throwable $t) {
82
+        }
83
+        catch(\Throwable $t)
84
+        {
82 85
             $this->output->writeln(ob_get_clean());
83 86
             $this->output->writeln($t->getMessage());
84 87
             $this->output->writeln($t->getTraceAsString());
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getIdentifier() : string
39 39
     {
40
-      return 'aimeos';
40
+        return 'aimeos';
41 41
     }
42 42
 
43 43
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getTitle() : string
50 50
     {
51
-      return 'Aimeos database migration';
51
+        return 'Aimeos database migration';
52 52
     }
53 53
 
54 54
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function getDescription() : string
61 61
     {
62
-      return 'Updates the Aimeos database tables and migrates data if necessary';
62
+        return 'Updates the Aimeos database tables and migrates data if necessary';
63 63
     }
64 64
 
65 65
 
Please login to merge, or discard this patch.
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -72,16 +72,16 @@  discard block
 block discarded – undo
72 72
     {
73 73
         try {
74 74
             ob_start();
75
-            $exectimeStart = microtime(true);
75
+            $exectimeStart = microtime( true );
76 76
 
77 77
             self::execute();
78 78
 
79
-            $this->output->writeln(ob_get_clean());
80
-            $this->output->writeln(sprintf('Setup process lasted %1$f sec', (microtime(true) - $exectimeStart)));
81
-        } catch(\Throwable $t) {
82
-            $this->output->writeln(ob_get_clean());
83
-            $this->output->writeln($t->getMessage());
84
-            $this->output->writeln($t->getTraceAsString());
79
+            $this->output->writeln( ob_get_clean() );
80
+            $this->output->writeln( sprintf( 'Setup process lasted %1$f sec', ( microtime( true ) - $exectimeStart ) ) );
81
+        } catch( \Throwable $t ) {
82
+            $this->output->writeln( ob_get_clean() );
83
+            $this->output->writeln( $t->getMessage() );
84
+            $this->output->writeln( $t->getTraceAsString() );
85 85
 
86 86
             return false;
87 87
         }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      *
107 107
      * @param OutputInterface $output
108 108
      */
109
-    public function setOutput(OutputInterface $output) : void
109
+    public function setOutput( OutputInterface $output ) : void
110 110
     {
111 111
         $this->output = $output;
112 112
     }
@@ -128,29 +128,29 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public static function execute()
130 130
     {
131
-        ini_set('max_execution_time', 0);
131
+        ini_set( 'max_execution_time', 0 );
132 132
 
133
-        $objectManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
134
-        $extconf = $objectManager->get('TYPO3\CMS\Core\Configuration\ExtensionConfiguration');
135
-        $demo = $extconf->get('aimeos', 'useDemoData');
133
+        $objectManager = GeneralUtility::makeInstance( \TYPO3\CMS\Extbase\Object\ObjectManager::class );
134
+        $extconf = $objectManager->get( 'TYPO3\CMS\Core\Configuration\ExtensionConfiguration' );
135
+        $demo = $extconf->get( 'aimeos', 'useDemoData' );
136 136
 
137
-        \Aimeos\MShop::cache(false);
138
-        \Aimeos\MAdmin::cache(false);
137
+        \Aimeos\MShop::cache( false );
138
+        \Aimeos\MAdmin::cache( false );
139 139
 
140
-        $site = \Aimeos\Aimeos\Base::getExtConfig('siteCode', 'default');
141
-        $template = \Aimeos\Aimeos\Base::getExtConfig('siteTpl', 'default');
140
+        $site = \Aimeos\Aimeos\Base::getExtConfig( 'siteCode', 'default' );
141
+        $template = \Aimeos\Aimeos\Base::getExtConfig( 'siteTpl', 'default' );
142 142
 
143 143
         $boostrap = \Aimeos\Aimeos\Base::aimeos();
144
-        $ctx = self::context(['setup' => ['default' => ['demo' => (string) $demo]]])->setEditor('setup');
144
+        $ctx = self::context( ['setup' => ['default' => ['demo' => (string) $demo]]] )->setEditor( 'setup' );
145 145
 
146
-        \Aimeos\Setup::use($boostrap)->verbose('vvv')
147
-            ->context($ctx->setEditor('aimeos:setup'))
148
-            ->up($site, $template);
146
+        \Aimeos\Setup::use( $boostrap )->verbose( 'vvv' )
147
+            ->context( $ctx->setEditor( 'aimeos:setup' ) )
148
+            ->up( $site, $template );
149 149
 
150
-        if (defined('TYPO3_version') && version_compare(constant('TYPO3_version'), '11.0.0', '<')) {
151
-            $extconf->set('aimeos', 'useDemoData', '');
150
+        if( defined( 'TYPO3_version' ) && version_compare( constant( 'TYPO3_version' ), '11.0.0', '<' ) ) {
151
+            $extconf->set( 'aimeos', 'useDemoData', '' );
152 152
         } else {
153
-            $extconf->set('aimeos', ['useDemoData' => '']);
153
+            $extconf->set( 'aimeos', ['useDemoData' => ''] );
154 154
         }
155 155
     }
156 156
 
@@ -161,32 +161,32 @@  discard block
 block discarded – undo
161 161
      * @param array $sql List of SQL statements
162 162
      * @return array SQL statements required for the install tool
163 163
      */
164
-    public static function schema(array $sql) : array
164
+    public static function schema( array $sql ) : array
165 165
     {
166 166
         $ctx = self::getContext();
167
-        $connectionNames = array_keys($ctx->getConfig()->get( 'resource'));
168
-        $connectionNames = array_filter($connectionNames, fn (string $key): bool => str_starts_with($key, 'db'));
167
+        $connectionNames = array_keys( $ctx->getConfig()->get( 'resource' ) );
168
+        $connectionNames = array_filter( $connectionNames, fn ( string $key ): bool => str_starts_with( $key, 'db' ) );
169 169
 
170
-        foreach ($connectionNames as $connectionName) {
171
-            $conn = $ctx->db($connectionName);
170
+        foreach( $connectionNames as $connectionName ) {
171
+            $conn = $ctx->db( $connectionName );
172 172
 
173 173
             $tables = [];
174
-            foreach(['fe_users_', 'madmin_', 'mshop_'] as $prefix) {
175
-                $result = $conn->create('SHOW TABLES like \'' . $prefix . '%\'')->execute();
174
+            foreach( ['fe_users_', 'madmin_', 'mshop_'] as $prefix ) {
175
+                $result = $conn->create( 'SHOW TABLES like \'' . $prefix . '%\'' )->execute();
176 176
 
177
-                while(($row = $result->fetch(\Aimeos\Base\DB\Result\Base::FETCH_NUM)) !== null) {
177
+                while( ( $row = $result->fetch( \Aimeos\Base\DB\Result\Base::FETCH_NUM ) ) !== null ) {
178 178
                     $tables[] = $row[0];
179 179
                 }
180 180
             }
181 181
 
182
-            foreach($tables as $table) {
183
-                $result = $conn->create('SHOW CREATE TABLE `' . $table . '`')->execute();
182
+            foreach( $tables as $table ) {
183
+                $result = $conn->create( 'SHOW CREATE TABLE `' . $table . '`' )->execute();
184 184
 
185
-                while(($row = $result->fetch(\Aimeos\Base\DB\Result\Base::FETCH_NUM)) !== null) {
185
+                while( ( $row = $result->fetch( \Aimeos\Base\DB\Result\Base::FETCH_NUM ) ) !== null ) {
186 186
                     $str = $row[1];
187 187
 
188
-                    $str = str_replace('"', '`', $str);
189
-                    $str = preg_replace('#CONSTRAINT `[a-zA-Z0-9_-]+` #', '', $str);
188
+                    $str = str_replace( '"', '`', $str );
189
+                    $str = preg_replace( '#CONSTRAINT `[a-zA-Z0-9_-]+` #', '', $str );
190 190
 
191 191
                     $sql[] = $str . ";\n";
192 192
                 }
@@ -202,9 +202,9 @@  discard block
 block discarded – undo
202 202
      *
203 203
      * @param string|null $extname Installed extension name
204 204
      */
205
-    public static function executeOnSignal(string $extname = null)
205
+    public static function executeOnSignal( string $extname = null )
206 206
     {
207
-        self::signal($extname);
207
+        self::signal( $extname );
208 208
     }
209 209
 
210 210
 
@@ -213,9 +213,9 @@  discard block
 block discarded – undo
213 213
      *
214 214
      * @param string|null $extname Installed extension name
215 215
      */
216
-    public static function signal(string $extname = null)
216
+    public static function signal( string $extname = null )
217 217
     {
218
-        if ($extname === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig('autoSetup', true)) {
218
+        if( $extname === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig( 'autoSetup', true ) ) {
219 219
             self::execute();
220 220
         }
221 221
     }
@@ -226,12 +226,12 @@  discard block
 block discarded – undo
226 226
      *
227 227
      * @param AlterTableDefinitionStatementsEvent $event Event object
228 228
      */
229
-    public function schemaEvent(AlterTableDefinitionStatementsEvent $event)
229
+    public function schemaEvent( AlterTableDefinitionStatementsEvent $event )
230 230
     {
231
-        $list = self::schema([]);
231
+        $list = self::schema( [] );
232 232
 
233
-        foreach ($list['sqlString'] ?? [] as $sql) {
234
-            $event->addSqlData($sql);
233
+        foreach( $list['sqlString'] ?? [] as $sql ) {
234
+            $event->addSqlData( $sql );
235 235
         }
236 236
     }
237 237
 
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
      *
242 242
      * @param AfterPackageActivationEvent $event Event object
243 243
      */
244
-    public function setupEvent(AfterPackageActivationEvent $event)
244
+    public function setupEvent( AfterPackageActivationEvent $event )
245 245
     {
246
-        if ($event->getPackageKey() === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig('autoSetup', true)) {
246
+        if( $event->getPackageKey() === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig( 'autoSetup', true ) ) {
247 247
             self::execute();
248 248
         }
249 249
     }
@@ -255,34 +255,34 @@  discard block
 block discarded – undo
255 255
      * @param array $config Nested array of configuration settings
256 256
      * @return \Aimeos\MShop\ContextIface Context object
257 257
      */
258
-    protected static function context(array $config = []) : \Aimeos\MShop\ContextIface
258
+    protected static function context( array $config = [] ) : \Aimeos\MShop\ContextIface
259 259
     {
260
-        $aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('aimeos');
260
+        $aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath( 'aimeos' );
261 261
 
262
-        if (file_exists($aimeosExtPath . '/Resources/Libraries/autoload.php') === true) {
262
+        if( file_exists( $aimeosExtPath . '/Resources/Libraries/autoload.php' ) === true ) {
263 263
             require_once $aimeosExtPath . '/Resources/Libraries/autoload.php';
264 264
         }
265 265
 
266 266
         $ctx = new \Aimeos\MShop\Context();
267
-        $conf = \Aimeos\Aimeos\Base::config($config);
267
+        $conf = \Aimeos\Aimeos\Base::config( $config );
268 268
 
269
-        $ctx->setConfig($conf);
270
-        $ctx->setDatabaseManager(new \Aimeos\Base\DB\Manager\Standard($conf->get('resource', []), 'DBAL'));
271
-        $ctx->setFilesystemManager(new \Aimeos\Base\Filesystem\Manager\Standard($conf->get('resource', [])));
272
-        $ctx->setLogger(new \Aimeos\Base\Logger\Errorlog(\Aimeos\Base\Logger\Iface::INFO));
273
-        $ctx->setSession(new \Aimeos\Base\Session\None());
274
-        $ctx->setCache(new \Aimeos\Base\Cache\None());
269
+        $ctx->setConfig( $conf );
270
+        $ctx->setDatabaseManager( new \Aimeos\Base\DB\Manager\Standard( $conf->get( 'resource', [] ), 'DBAL' ) );
271
+        $ctx->setFilesystemManager( new \Aimeos\Base\Filesystem\Manager\Standard( $conf->get( 'resource', [] ) ) );
272
+        $ctx->setLogger( new \Aimeos\Base\Logger\Errorlog( \Aimeos\Base\Logger\Iface::INFO ) );
273
+        $ctx->setSession( new \Aimeos\Base\Session\None() );
274
+        $ctx->setCache( new \Aimeos\Base\Cache\None() );
275 275
 
276 276
         // Reset before child processes are spawned to avoid lost DB connections afterwards (TYPO3 9.4 and above)
277
-        if (php_sapi_name() === 'cli' && class_exists('\TYPO3\CMS\Core\Database\ConnectionPool')
278
-            && method_exists('\TYPO3\CMS\Core\Database\ConnectionPool', 'resetConnections')
277
+        if( php_sapi_name() === 'cli' && class_exists( '\TYPO3\CMS\Core\Database\ConnectionPool' )
278
+            && method_exists( '\TYPO3\CMS\Core\Database\ConnectionPool', 'resetConnections' )
279 279
         ) {
280
-            $ctx->setProcess(new \Aimeos\Base\Process\Pcntl(\Aimeos\Aimeos\Base::getExtConfig('pcntlMax', 4)));
280
+            $ctx->setProcess( new \Aimeos\Base\Process\Pcntl( \Aimeos\Aimeos\Base::getExtConfig( 'pcntlMax', 4 ) ) );
281 281
         } else {
282
-            $ctx->setProcess(new \Aimeos\Base\Process\None());
282
+            $ctx->setProcess( new \Aimeos\Base\Process\None() );
283 283
         }
284 284
 
285
-        $factory = GeneralUtility::makeInstance('TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory');
286
-        return $ctx->setPassword(new \Aimeos\Base\Password\Typo3($factory->getDefaultHashInstance('FE')));
285
+        $factory = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory' );
286
+        return $ctx->setPassword( new \Aimeos\Base\Password\Typo3( $factory->getDefaultHashInstance( 'FE' ) ) );
287 287
     }
288 288
 }
Please login to merge, or discard this patch.
Classes/Custom/Composer.php 2 patches
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -23,25 +23,25 @@  discard block
 block discarded – undo
23 23
      * @param \Composer\Script\Event $event Event instance
24 24
      * @throws \RuntimeException If an error occured
25 25
      */
26
-    public static function install(\Composer\Script\Event $event)
26
+    public static function install( \Composer\Script\Event $event )
27 27
     {
28 28
         $repository = $event->getComposer()->getRepositoryManager()->getLocalRepository();
29 29
 
30
-        if (($t3package = $repository->findPackage('aimeos/aimeos-typo3', '*')) === null) {
31
-            throw new \RuntimeException('No installed package "aimeos/aimeos-typo3" found');
30
+        if( ( $t3package = $repository->findPackage( 'aimeos/aimeos-typo3', '*' ) ) === null ) {
31
+            throw new \RuntimeException( 'No installed package "aimeos/aimeos-typo3" found' );
32 32
         }
33 33
 
34 34
         $installer = $event->getComposer()->getInstallationManager();
35
-        $t3path = $installer->getInstallPath($t3package);
35
+        $t3path = $installer->getInstallPath( $t3package );
36 36
 
37
-        if (($package = $repository->findPackage('aimeos/ai-client-html', '*')) !== null) {
38
-            $event->getIO()->write('Installing Aimeos public files from HTML client');
37
+        if( ( $package = $repository->findPackage( 'aimeos/ai-client-html', '*' ) ) !== null ) {
38
+            $event->getIO()->write( 'Installing Aimeos public files from HTML client' );
39 39
 
40
-            $path = $installer->getInstallPath($package);
41
-            self::copyRecursive($path . '/client/html/themes', $t3path . '/Resources/Public/Themes');
40
+            $path = $installer->getInstallPath( $package );
41
+            self::copyRecursive( $path . '/client/html/themes', $t3path . '/Resources/Public/Themes' );
42 42
         }
43 43
 
44
-        self::join($event);
44
+        self::join( $event );
45 45
     }
46 46
 
47 47
 
@@ -52,24 +52,24 @@  discard block
 block discarded – undo
52 52
      * @param string $dest Target directory path
53 53
      * @throws \RuntimeException If an error occured
54 54
      */
55
-    protected static function copyRecursive(string $src, string $dest)
55
+    protected static function copyRecursive( string $src, string $dest )
56 56
     {
57
-        self::createDirectory($dest);
57
+        self::createDirectory( $dest );
58 58
 
59 59
         $iterator = new \RecursiveIteratorIterator(
60
-            new \RecursiveDirectoryIterator($src, \RecursiveDirectoryIterator::SKIP_DOTS),
60
+            new \RecursiveDirectoryIterator( $src, \RecursiveDirectoryIterator::SKIP_DOTS ),
61 61
             \RecursiveIteratorIterator::SELF_FIRST
62 62
         );
63 63
 
64
-        foreach ($iterator as $item) {
64
+        foreach( $iterator as $item ) {
65 65
             $target = $dest . DIRECTORY_SEPARATOR . $iterator->getSubPathName();
66 66
 
67
-            if ($item->isDir() === false) {
68
-                if (copy($item, $target) === false) {
69
-                    throw new \RuntimeException(sprintf('Unable to copy file "%1$s"', $item));
67
+            if( $item->isDir() === false ) {
68
+                if( copy( $item, $target ) === false ) {
69
+                    throw new \RuntimeException( sprintf( 'Unable to copy file "%1$s"', $item ) );
70 70
                 }
71 71
             } else {
72
-                self::createDirectory($target);
72
+                self::createDirectory( $target );
73 73
             }
74 74
         }
75 75
     }
@@ -81,13 +81,13 @@  discard block
 block discarded – undo
81 81
      * @param string $dir Absolute path of the new directory
82 82
      * @throws \RuntimeException If directory couldn't be created
83 83
      */
84
-    protected static function createDirectory(string $dir)
84
+    protected static function createDirectory( string $dir )
85 85
     {
86 86
         $perm = 0755;
87 87
 
88
-        if (is_dir($dir) === false && mkdir($dir, $perm, true) === false) {
88
+        if( is_dir( $dir ) === false && mkdir( $dir, $perm, true ) === false ) {
89 89
             $msg = 'Unable to create directory "%1$s" with permission "%2$s"';
90
-            throw new \RuntimeException(sprintf($msg, $dir, $perm));
90
+            throw new \RuntimeException( sprintf( $msg, $dir, $perm ) );
91 91
         }
92 92
     }
93 93
 
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
      * @param Event $event Event instance
99 99
      * @throws \RuntimeException If an error occured
100 100
      */
101
-    protected static function join(\Composer\Script\Event $event)
101
+    protected static function join( \Composer\Script\Event $event )
102 102
     {
103 103
         try {
104
-            if (!$event->getIO()->hasAuthentication('github.com')) {
104
+            if( !$event->getIO()->hasAuthentication( 'github.com' ) ) {
105 105
                     return;
106 106
             }
107 107
 
@@ -109,25 +109,25 @@  discard block
 block discarded – undo
109 109
                 'http' => [
110 110
                     'method' => 'POST',
111 111
                     'header' => ['Content-Type: application/json'],
112
-                    'content' => json_encode(['query' => 'mutation{
112
+                    'content' => json_encode( ['query' => 'mutation{
113 113
                         _1: addStar(input:{clientMutationId:"_1",starrableId:"MDEwOlJlcG9zaXRvcnkxMDMwMTUwNzA="}){clientMutationId}
114 114
                         _2: addStar(input:{clientMutationId:"_2",starrableId:"MDEwOlJlcG9zaXRvcnkzMTU0MTIxMA=="}){clientMutationId}
115 115
                         _3: addStar(input:{clientMutationId:"_3",starrableId:"MDEwOlJlcG9zaXRvcnkyNjg4MTc2NQ=="}){clientMutationId}
116 116
                         _4: addStar(input:{clientMutationId:"_4",starrableId:"MDEwOlJlcG9zaXRvcnkyMjIzNTY4OTA="}){clientMutationId}
117 117
                         _5: addStar(input:{clientMutationId:"_5",starrableId:"R_kgDOG1PAJw"}){clientMutationId}
118 118
                         }'
119
-                    ])
119
+                    ] )
120 120
                 ]
121 121
             ];
122 122
             $config = $event->getComposer()->config();
123 123
 
124
-            if (method_exists('\Composer\Factory', 'createHttpDownloader')) {
125
-                \Composer\Factory::createHttpDownloader($event->getIO(), $config)
126
-                    ->get('https://api.github.com/graphql', $options);
124
+            if( method_exists( '\Composer\Factory', 'createHttpDownloader' ) ) {
125
+                \Composer\Factory::createHttpDownloader( $event->getIO(), $config )
126
+                    ->get( 'https://api.github.com/graphql', $options );
127 127
             } else {
128
-                \Composer\Factory::createRemoteFilesystem($event->getIO(), $config)
129
-                    ->getContents('github.com', 'https://api.github.com/graphql', false, $options);
128
+                \Composer\Factory::createRemoteFilesystem( $event->getIO(), $config )
129
+                    ->getContents( 'github.com', 'https://api.github.com/graphql', false, $options );
130 130
             }
131
-        } catch(\Exception $e) {}
131
+        } catch( \Exception $e ) {}
132 132
     }
133 133
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,8 @@  discard block
 block discarded – undo
100 100
      */
101 101
     protected static function join(\Composer\Script\Event $event)
102 102
     {
103
-        try {
103
+        try
104
+        {
104 105
             if (!$event->getIO()->hasAuthentication('github.com')) {
105 106
                     return;
106 107
             }
@@ -128,6 +129,9 @@  discard block
 block discarded – undo
128 129
                 \Composer\Factory::createRemoteFilesystem($event->getIO(), $config)
129 130
                     ->getContents('github.com', 'https://api.github.com/graphql', false, $options);
130 131
             }
131
-        } catch(\Exception $e) {}
132
+        }
133
+        catch(\Exception $e)
134
+        {
135
+}
132 136
     }
133 137
 }
Please login to merge, or discard this patch.
Classes/Command/JobsCommand.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
      */
35 35
     protected function configure()
36 36
     {
37
-        $this->setName(self::$defaultName);
38
-        $this->setDescription('Executes the job controllers');
39
-        $this->addArgument('jobs', InputArgument::REQUIRED, 'One or more job controller names like "admin/job customer/email/watch"');
40
-        $this->addArgument('site', InputArgument::OPTIONAL, 'Site codes to execute the jobs for like "default unittest" (none for all)');
41
-        $this->addOption('pid', null, InputOption::VALUE_REQUIRED, 'Page ID of the catalog detail page for jobs generating URLs');
37
+        $this->setName( self::$defaultName );
38
+        $this->setDescription( 'Executes the job controllers' );
39
+        $this->addArgument( 'jobs', InputArgument::REQUIRED, 'One or more job controller names like "admin/job customer/email/watch"' );
40
+        $this->addArgument( 'site', InputArgument::OPTIONAL, 'Site codes to execute the jobs for like "default unittest" (none for all)' );
41
+        $this->addOption( 'pid', null, InputOption::VALUE_REQUIRED, 'Page ID of the catalog detail page for jobs generating URLs' );
42 42
     }
43 43
 
44 44
 
@@ -48,39 +48,39 @@  discard block
 block discarded – undo
48 48
      * @param InputInterface $input Input object
49 49
      * @param OutputInterface $output Output object
50 50
      */
51
-    protected function execute(InputInterface $input, OutputInterface $output)
51
+    protected function execute( InputInterface $input, OutputInterface $output )
52 52
     {
53
-        $context = $this->context($input->getOption('pid'));
53
+        $context = $this->context( $input->getOption( 'pid' ) );
54 54
         $process = $context->process();
55 55
 
56 56
         $aimeos = \Aimeos\Aimeos\Base::aimeos();
57
-        $jobs = explode(' ', $input->getArgument('jobs'));
58
-        $localeManager = \Aimeos\MShop::create($context, 'locale');
57
+        $jobs = explode( ' ', $input->getArgument( 'jobs' ) );
58
+        $localeManager = \Aimeos\MShop::create( $context, 'locale' );
59 59
 
60
-        foreach ($this->getSiteItems($context, $input) as $siteItem) {
61
-            $localeItem = $localeManager->bootstrap($siteItem->getCode(), '', '', false);
62
-            $localeItem->setLanguageId(null);
63
-            $localeItem->setCurrencyId(null);
64
-            $context->setLocale($localeItem);
60
+        foreach( $this->getSiteItems( $context, $input ) as $siteItem ) {
61
+            $localeItem = $localeManager->bootstrap( $siteItem->getCode(), '', '', false );
62
+            $localeItem->setLanguageId( null );
63
+            $localeItem->setCurrencyId( null );
64
+            $context->setLocale( $localeItem );
65 65
 
66 66
             $config = $context->config();
67
-            foreach ($localeItem->getSiteItem()->getConfig() as $key => $value) {
68
-                $config->set($key, $value);
67
+            foreach( $localeItem->getSiteItem()->getConfig() as $key => $value ) {
68
+                $config->set( $key, $value );
69 69
             }
70 70
 
71
-            $output->writeln(sprintf('Executing the Aimeos jobs for "<info>%s</info>"', $siteItem->getCode()));
71
+            $output->writeln( sprintf( 'Executing the Aimeos jobs for "<info>%s</info>"', $siteItem->getCode() ) );
72 72
 
73 73
             // Reset before child processes are spawned to avoid lost DB connections afterwards (TYPO3 9.4 and above)
74
-            if (method_exists('\TYPO3\CMS\Core\Database\ConnectionPool', 'resetConnections')) {
75
-                GeneralUtility::makeInstance('TYPO3\CMS\Core\Database\ConnectionPool')->resetConnections();
74
+            if( method_exists( '\TYPO3\CMS\Core\Database\ConnectionPool', 'resetConnections' ) ) {
75
+                GeneralUtility::makeInstance( 'TYPO3\CMS\Core\Database\ConnectionPool' )->resetConnections();
76 76
             }
77 77
 
78
-            foreach ($jobs as $jobname) {
79
-                $fcn = function($context, $aimeos, $jobname) {
80
-                    \Aimeos\Controller\Jobs::create($context, $aimeos, $jobname)->run();
78
+            foreach( $jobs as $jobname ) {
79
+                $fcn = function( $context, $aimeos, $jobname ) {
80
+                    \Aimeos\Controller\Jobs::create( $context, $aimeos, $jobname )->run();
81 81
                 };
82 82
 
83
-                $process->start($fcn, [$context, $aimeos, $jobname], true);
83
+                $process->start( $fcn, [$context, $aimeos, $jobname], true );
84 84
             }
85 85
         }
86 86
 
@@ -96,27 +96,27 @@  discard block
 block discarded – undo
96 96
      * @param string|null $pid Page ID if available
97 97
      * @return \Aimeos\MShop\ContextIface Context object containing only the most necessary dependencies
98 98
      */
99
-    protected function context(?string $pid) : \Aimeos\MShop\ContextIface
99
+    protected function context( ?string $pid ) : \Aimeos\MShop\ContextIface
100 100
     {
101 101
         $aimeos = \Aimeos\Aimeos\Base::aimeos();
102
-        $tmplPaths = $aimeos->getTemplatePaths('controller/jobs/templates');
102
+        $tmplPaths = $aimeos->getTemplatePaths( 'controller/jobs/templates' );
103 103
 
104 104
         $config = \Aimeos\Aimeos\Base::config();
105
-        $context = \Aimeos\Aimeos\Base::context($config);
105
+        $context = \Aimeos\Aimeos\Base::context( $config );
106 106
 
107
-        $langManager = \Aimeos\MShop::create($context, 'locale/language');
108
-        $langids = $langManager->search($langManager->filter(true))->keys()->toArray();
107
+        $langManager = \Aimeos\MShop::create( $context, 'locale/language' );
108
+        $langids = $langManager->search( $langManager->filter( true ) )->keys()->toArray();
109 109
 
110
-        $i18n = \Aimeos\Aimeos\Base::i18n($langids, $config->get('i18n', []));
111
-        $context->setI18n($i18n);
110
+        $i18n = \Aimeos\Aimeos\Base::i18n( $langids, $config->get( 'i18n', [] ) );
111
+        $context->setI18n( $i18n );
112 112
 
113
-        $view = \Aimeos\Aimeos\Base::view($context, $this->getRouter($pid), $tmplPaths);
114
-        $context->setView($view);
113
+        $view = \Aimeos\Aimeos\Base::view( $context, $this->getRouter( $pid ), $tmplPaths );
114
+        $context->setView( $view );
115 115
 
116
-        $context->setSession(new \Aimeos\Base\Session\None());
117
-        $context->setCache(new \Aimeos\Base\Cache\None());
116
+        $context->setSession( new \Aimeos\Base\Session\None() );
117
+        $context->setCache( new \Aimeos\Base\Cache\None() );
118 118
 
119
-        return $context->setEditor('aimeos:jobs');
119
+        return $context->setEditor( 'aimeos:jobs' );
120 120
     }
121 121
 
122 122
 
@@ -127,16 +127,16 @@  discard block
 block discarded – undo
127 127
      * @param InputInterface $input Input object
128 128
      * @return \Aimeos\Map List of site items implementing \Aimeos\MShop\Locale\Item\Site\Iface
129 129
      */
130
-    protected function getSiteItems(\Aimeos\MShop\ContextIface $context, InputInterface $input) : \Aimeos\Map
130
+    protected function getSiteItems( \Aimeos\MShop\ContextIface $context, InputInterface $input ) : \Aimeos\Map
131 131
     {
132
-        $manager = \Aimeos\MShop::create($context, 'locale/site');
132
+        $manager = \Aimeos\MShop::create( $context, 'locale/site' );
133 133
         $search = $manager->filter();
134 134
 
135
-        if (($codes = (string) $input->getArgument('site')) !== '') {
136
-            $search->setConditions($search->compare('==', 'locale.site.code', explode(' ', $codes)));
135
+        if( ( $codes = (string) $input->getArgument( 'site' ) ) !== '' ) {
136
+            $search->setConditions( $search->compare( '==', 'locale.site.code', explode( ' ', $codes ) ) );
137 137
         }
138 138
 
139
-        return $manager->search($search);
139
+        return $manager->search( $search );
140 140
     }
141 141
 
142 142
 
@@ -147,15 +147,15 @@  discard block
 block discarded – undo
147 147
      * @return \TYPO3\CMS\Core\Routing\RouterInterface Page router
148 148
      * @throws \RuntimeException If no site configuraiton is available
149 149
      */
150
-    protected function getRouter(?string $pid) : \TYPO3\CMS\Core\Routing\RouterInterface
150
+    protected function getRouter( ?string $pid ) : \TYPO3\CMS\Core\Routing\RouterInterface
151 151
     {
152
-        $siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
153
-        $site = $pid ? $siteFinder->getSiteByPageId($pid) : current($siteFinder->getAllSites());
152
+        $siteFinder = GeneralUtility::makeInstance( SiteFinder::class );
153
+        $site = $pid ? $siteFinder->getSiteByPageId( $pid ) : current( $siteFinder->getAllSites() );
154 154
 
155
-        if ($site) {
155
+        if( $site ) {
156 156
             return $site->getRouter();
157 157
         }
158 158
 
159
-        throw new \RuntimeException('No site configuration found');
159
+        throw new \RuntimeException( 'No site configuration found' );
160 160
     }
161 161
 }
Please login to merge, or discard this patch.
Classes/Command/SetupCommand.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
      */
30 30
     protected function configure()
31 31
     {
32
-        $this->setName('aimeos:setup');
33
-        $this->setDescription('Initialize or update the Aimeos database tables');
34
-        $this->addArgument('site', InputArgument::OPTIONAL, 'Site for updating database entries', 'default');
35
-        $this->addArgument('tplsite', InputArgument::OPTIONAL, 'Template site for creating or updating database entries', 'default');
36
-        $this->addOption('option', null, InputOption::VALUE_REQUIRED, 'Optional setup configuration, name and value are separated by ":" like "setup/default/demo:1"', []);
37
-        $this->addOption('v', null, InputOption::VALUE_OPTIONAL, 'Verbosity level, "v", "vv" or "vvv"', 'vv');
38
-        $this->addOption('q', null, InputOption::VALUE_NONE, 'Quiet mode without any output');
32
+        $this->setName( 'aimeos:setup' );
33
+        $this->setDescription( 'Initialize or update the Aimeos database tables' );
34
+        $this->addArgument( 'site', InputArgument::OPTIONAL, 'Site for updating database entries', 'default' );
35
+        $this->addArgument( 'tplsite', InputArgument::OPTIONAL, 'Template site for creating or updating database entries', 'default' );
36
+        $this->addOption( 'option', null, InputOption::VALUE_REQUIRED, 'Optional setup configuration, name and value are separated by ":" like "setup/default/demo:1"', [] );
37
+        $this->addOption( 'v', null, InputOption::VALUE_OPTIONAL, 'Verbosity level, "v", "vv" or "vvv"', 'vv' );
38
+        $this->addOption( 'q', null, InputOption::VALUE_NONE, 'Quiet mode without any output' );
39 39
     }
40 40
 
41 41
 
@@ -45,24 +45,24 @@  discard block
 block discarded – undo
45 45
      * @param InputInterface $input Input object
46 46
      * @param OutputInterface $output Output object
47 47
      */
48
-    protected function execute(InputInterface $input, OutputInterface $output)
48
+    protected function execute( InputInterface $input, OutputInterface $output )
49 49
     {
50
-        \Aimeos\MShop::cache(false);
51
-        \Aimeos\MAdmin::cache(false);
50
+        \Aimeos\MShop::cache( false );
51
+        \Aimeos\MAdmin::cache( false );
52 52
 
53
-        $site = $input->getArgument('site');
54
-        $template = $input->getArgument('tplsite');
53
+        $site = $input->getArgument( 'site' );
54
+        $template = $input->getArgument( 'tplsite' );
55 55
 
56 56
         $config = \Aimeos\Aimeos\Base::config();
57 57
         $boostrap = \Aimeos\Aimeos\Base::aimeos();
58
-        $ctx = \Aimeos\Aimeos\Base::context($config)->setEditor('aimeos:setup');
58
+        $ctx = \Aimeos\Aimeos\Base::context( $config )->setEditor( 'aimeos:setup' );
59 59
 
60
-        $output->writeln(sprintf('Initializing or updating the Aimeos database tables for site <info>%1$s</info>', $site));
60
+        $output->writeln( sprintf( 'Initializing or updating the Aimeos database tables for site <info>%1$s</info>', $site ) );
61 61
 
62
-        \Aimeos\Setup::use($boostrap)
63
-            ->context($this->addConfig($ctx->setEditor('aimeos:setup'), $input->getOption('option')))
64
-            ->verbose($input->getOption('q') ? '' : $input->getOption('v'))
65
-            ->up($site, $template);
62
+        \Aimeos\Setup::use( $boostrap )
63
+            ->context( $this->addConfig( $ctx->setEditor( 'aimeos:setup' ), $input->getOption( 'option' ) ) )
64
+            ->verbose( $input->getOption( 'q' ) ? '' : $input->getOption( 'v' ) )
65
+            ->up( $site, $template );
66 66
 
67 67
         return 0;
68 68
     }
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
      * @param \Aimeos\MShop\ContextIface $ctx Context object
76 76
      * @return array Associative list of key/value pairs of configuration options
77 77
      */
78
-    protected function addConfig(\Aimeos\MShop\ContextIface $ctx, $options) : \Aimeos\MShop\ContextIface
78
+    protected function addConfig( \Aimeos\MShop\ContextIface $ctx, $options ) : \Aimeos\MShop\ContextIface
79 79
     {
80 80
         $config = $ctx->config();
81 81
 
82
-        foreach ((array) $options as $option) {
83
-            list($name, $value) = explode(':', $option);
84
-            $config->set($name, $value);
82
+        foreach( (array) $options as $option ) {
83
+            list( $name, $value ) = explode( ':', $option );
84
+            $config->set( $name, $value );
85 85
         }
86 86
 
87 87
         return $ctx;
Please login to merge, or discard this patch.
ext_localconf.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-defined('TYPO3') or die();
3
+defined( 'TYPO3' ) or die();
4 4
 
5 5
 
6
-$aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('aimeos' );
6
+$aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath( 'aimeos' );
7 7
 
8
-if (file_exists($aimeosExtPath . '/Resources/Libraries/autoload.php' ) === true ) {
8
+if( file_exists( $aimeosExtPath . '/Resources/Libraries/autoload.php' ) === true ) {
9 9
     require_once $aimeosExtPath . '/Resources/Libraries/autoload.php';
10 10
 }
11 11
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 /**
22 22
  * Aimeos plugins
23 23
  */
24
-$name = defined('TYPO3_version' ) && version_compare(constant('TYPO3_version' ), '11.0.0', '<' ) ? 'Aimeos.' : '';
24
+$name = defined( 'TYPO3_version' ) && version_compare( constant( 'TYPO3_version' ), '11.0.0', '<' ) ? 'Aimeos.' : '';
25 25
 
26 26
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
27 27
     $name . 'aimeos',
@@ -263,41 +263,41 @@  discard block
 block discarded – undo
263 263
  * Register icons for Aimeos content elements
264 264
  */
265 265
 $provider = 'TYPO3\CMS\Core\Imaging\IconProvider\FontawesomeIconProvider';
266
-$icons = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class );
267
-$icons->registerIcon('aimeos_catalog-home', $provider, ['name' => 'globe'] );
268
-$icons->registerIcon('aimeos_catalog-list', $provider, ['name' => 'list'] );
269
-$icons->registerIcon('aimeos_catalog-detail', $provider, ['name' => 'cube'] );
270
-$icons->registerIcon('aimeos_catalog-filter', $provider, ['name' => 'filter'] );
271
-$icons->registerIcon('aimeos_catalog-attribute', $provider, ['name' => 'filter'] );
272
-$icons->registerIcon('aimeos_catalog-price', $provider, ['name' => 'filter'] );
273
-$icons->registerIcon('aimeos_catalog-search', $provider, ['name' => 'filter'] );
274
-$icons->registerIcon('aimeos_catalog-supplier', $provider, ['name' => 'filter'] );
275
-$icons->registerIcon('aimeos_catalog-tree', $provider, ['name' => 'filter'] );
276
-$icons->registerIcon('aimeos_catalog-suggest', $provider, ['name' => 'ellipsis-h'] );
277
-$icons->registerIcon('aimeos_catalog-count', $provider, ['name' => 'bars'] );
278
-$icons->registerIcon('aimeos_catalog-stage', $provider, ['name' => 'image'] );
279
-$icons->registerIcon('aimeos_catalog-session', $provider, ['name' => 'thumb-tack'] );
280
-$icons->registerIcon('aimeos_catalog-stock', $provider, ['name' => 'cubes'] );
281
-$icons->registerIcon('aimeos_supplier-detail', $provider, ['name' => 'industry'] );
282
-$icons->registerIcon('aimeos_locale-select', $provider, ['name' => 'globe'] );
283
-$icons->registerIcon('aimeos_account-download', $provider, ['name' => 'download'] );
284
-$icons->registerIcon('aimeos_account-basket', $provider, ['name' => 'cart-arrow-down'] );
285
-$icons->registerIcon('aimeos_account-history', $provider, ['name' => 'history'] );
286
-$icons->registerIcon('aimeos_account-favorite', $provider, ['name' => 'heart'] );
287
-$icons->registerIcon('aimeos_account-profile', $provider, ['name' => 'user'] );
288
-$icons->registerIcon('aimeos_account-review', $provider, ['name' => 'comments'] );
289
-$icons->registerIcon('aimeos_account-subscription', $provider, ['name' => 'repeat'] );
290
-$icons->registerIcon('aimeos_account-watch', $provider, ['name' => 'eye'] );
291
-$icons->registerIcon('aimeos_basket-standard', $provider, ['name' => 'shopping-cart'] );
292
-$icons->registerIcon('aimeos_basket-small', $provider, ['name' => 'shopping-basket'] );
293
-$icons->registerIcon('aimeos_basket-related', $provider, ['name' => 'link'] );
294
-$icons->registerIcon('aimeos_basket-bulk', $provider, ['name' => 'truck'] );
295
-$icons->registerIcon('aimeos_checkout-standard', $provider, ['name' => 'credit-card'] );
296
-$icons->registerIcon('aimeos_checkout-confirm', $provider, ['name' => 'check'] );
297
-$icons->registerIcon('aimeos_checkout-update', $provider, ['name' => 'euro'] );
298
-$icons->registerIcon('aimeos_jsonapi', $provider, ['name' => 'code'] );
299
-
300
-$icons->registerIcon('aimeos-widget-latestorders', $provider, ['name' => 'shopping-cart'] );
266
+$icons = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( \TYPO3\CMS\Core\Imaging\IconRegistry::class );
267
+$icons->registerIcon( 'aimeos_catalog-home', $provider, ['name' => 'globe'] );
268
+$icons->registerIcon( 'aimeos_catalog-list', $provider, ['name' => 'list'] );
269
+$icons->registerIcon( 'aimeos_catalog-detail', $provider, ['name' => 'cube'] );
270
+$icons->registerIcon( 'aimeos_catalog-filter', $provider, ['name' => 'filter'] );
271
+$icons->registerIcon( 'aimeos_catalog-attribute', $provider, ['name' => 'filter'] );
272
+$icons->registerIcon( 'aimeos_catalog-price', $provider, ['name' => 'filter'] );
273
+$icons->registerIcon( 'aimeos_catalog-search', $provider, ['name' => 'filter'] );
274
+$icons->registerIcon( 'aimeos_catalog-supplier', $provider, ['name' => 'filter'] );
275
+$icons->registerIcon( 'aimeos_catalog-tree', $provider, ['name' => 'filter'] );
276
+$icons->registerIcon( 'aimeos_catalog-suggest', $provider, ['name' => 'ellipsis-h'] );
277
+$icons->registerIcon( 'aimeos_catalog-count', $provider, ['name' => 'bars'] );
278
+$icons->registerIcon( 'aimeos_catalog-stage', $provider, ['name' => 'image'] );
279
+$icons->registerIcon( 'aimeos_catalog-session', $provider, ['name' => 'thumb-tack'] );
280
+$icons->registerIcon( 'aimeos_catalog-stock', $provider, ['name' => 'cubes'] );
281
+$icons->registerIcon( 'aimeos_supplier-detail', $provider, ['name' => 'industry'] );
282
+$icons->registerIcon( 'aimeos_locale-select', $provider, ['name' => 'globe'] );
283
+$icons->registerIcon( 'aimeos_account-download', $provider, ['name' => 'download'] );
284
+$icons->registerIcon( 'aimeos_account-basket', $provider, ['name' => 'cart-arrow-down'] );
285
+$icons->registerIcon( 'aimeos_account-history', $provider, ['name' => 'history'] );
286
+$icons->registerIcon( 'aimeos_account-favorite', $provider, ['name' => 'heart'] );
287
+$icons->registerIcon( 'aimeos_account-profile', $provider, ['name' => 'user'] );
288
+$icons->registerIcon( 'aimeos_account-review', $provider, ['name' => 'comments'] );
289
+$icons->registerIcon( 'aimeos_account-subscription', $provider, ['name' => 'repeat'] );
290
+$icons->registerIcon( 'aimeos_account-watch', $provider, ['name' => 'eye'] );
291
+$icons->registerIcon( 'aimeos_basket-standard', $provider, ['name' => 'shopping-cart'] );
292
+$icons->registerIcon( 'aimeos_basket-small', $provider, ['name' => 'shopping-basket'] );
293
+$icons->registerIcon( 'aimeos_basket-related', $provider, ['name' => 'link'] );
294
+$icons->registerIcon( 'aimeos_basket-bulk', $provider, ['name' => 'truck'] );
295
+$icons->registerIcon( 'aimeos_checkout-standard', $provider, ['name' => 'credit-card'] );
296
+$icons->registerIcon( 'aimeos_checkout-confirm', $provider, ['name' => 'check'] );
297
+$icons->registerIcon( 'aimeos_checkout-update', $provider, ['name' => 'euro'] );
298
+$icons->registerIcon( 'aimeos_jsonapi', $provider, ['name' => 'code'] );
299
+
300
+$icons->registerIcon( 'aimeos-widget-latestorders', $provider, ['name' => 'shopping-cart'] );
301 301
 
302 302
 
303 303
 /**
@@ -346,19 +346,19 @@  discard block
 block discarded – undo
346 346
  * Add cache configuration
347 347
  */
348 348
 
349
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos'] ) ) {
349
+if( !isset( $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos'] ) ) {
350 350
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos'] = [];
351 351
 }
352 352
 
353
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['frontend'] ) ) {
353
+if( !isset( $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['frontend'] ) ) {
354 354
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['frontend'] = 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend';
355 355
 }
356 356
 
357
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['options'] ) ) {
357
+if( !isset( $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['options'] ) ) {
358 358
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['options'] = ['defaultLifetime' => 0];
359 359
 }
360 360
 
361
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['groups'] ) ) {
361
+if( !isset( $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['groups'] ) ) {
362 362
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['aimeos']['groups'] = ['pages'];
363 363
 }
364 364
 
@@ -368,13 +368,13 @@  discard block
 block discarded – undo
368 368
  */
369 369
 
370 370
 // TYPO3 10, unnecessary in 11
371
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['logout_confirmed']['aimeos'] ) ) {
371
+if( !isset( $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['logout_confirmed']['aimeos'] ) ) {
372 372
     $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['logout_confirmed']['aimeos'] = \Aimeos\Aimeos\Base::class . '->logout';
373 373
 }
374 374
 
375
-if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['aimeos'] ) ) {
376
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['aimeos'] = function(array $cacheType, $dataHandler ) {
377
-        \Aimeos\Aimeos\Base::clearCache($cacheType );
375
+if( !isset( $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['aimeos'] ) ) {
376
+    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['aimeos'] = function( array $cacheType, $dataHandler ) {
377
+        \Aimeos\Aimeos\Base::clearCache( $cacheType );
378 378
     };
379 379
 }
380 380
 
@@ -390,8 +390,8 @@  discard block
 block discarded – undo
390 390
  * Disable TYPO3 canonical tags so Aimeos ones are used
391 391
  */
392 392
 
393
-if (!\Aimeos\Aimeos\Base::getExtConfig('typo3Canonical', false ) ) {
394
-    unset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Frontend\Page\PageGenerator']['generateMetaTags']['canonical'] );
393
+if( !\Aimeos\Aimeos\Base::getExtConfig( 'typo3Canonical', false ) ) {
394
+    unset( $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Frontend\Page\PageGenerator']['generateMetaTags']['canonical'] );
395 395
 }
396 396
 
397 397
 ?>
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/sys_template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-defined('TYPO3') or die();
3
+defined( 'TYPO3' ) or die();
4 4
 
5 5
 
6
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('aimeos', 'Configuration/TypoScript/', 'Aimeos Shop configuration');
6
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( 'aimeos', 'Configuration/TypoScript/', 'Aimeos Shop configuration' );
7 7
 
8 8
 
9 9
 ?>
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/be_users.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-defined('TYPO3') or die();
3
+defined( 'TYPO3' ) or die();
4 4
 
5 5
 
6 6
 $beUsersSiteFcn = function() {
@@ -9,44 +9,44 @@  discard block
 block discarded – undo
9 9
 
10 10
     try {
11 11
         $config = \Aimeos\Aimeos\Base::config();
12
-        $context = \Aimeos\Aimeos\Base::context($config);
12
+        $context = \Aimeos\Aimeos\Base::context( $config );
13 13
 
14
-        $result = $context->db('db-locale')->create('SELECT * FROM "mshop_locale_site" ORDER BY "nleft"')->execute();
14
+        $result = $context->db( 'db-locale' )->create( 'SELECT * FROM "mshop_locale_site" ORDER BY "nleft"' )->execute();
15 15
         $parents = [];
16 16
 
17
-        $fcn = function($result, $parents, $right) use (&$fcn, &$list) {
17
+        $fcn = function( $result, $parents, $right ) use ( &$fcn, &$list ) {
18 18
 
19
-            while ($row = $result->fetch()) {
20
-                $list[] = [join(' > ', array_merge($parents, [$row['label']])), $row['siteid']];
19
+            while( $row = $result->fetch() ) {
20
+                $list[] = [join( ' > ', array_merge( $parents, [$row['label']] ) ), $row['siteid']];
21 21
 
22
-                if ($row['nright'] - $row['nleft'] > 1) {
23
-                    $fcn($result, array_merge($parents, [$row['label']]), $row['nright']);
22
+                if( $row['nright'] - $row['nleft'] > 1 ) {
23
+                    $fcn( $result, array_merge( $parents, [$row['label']] ), $row['nright'] );
24 24
                 }
25 25
 
26
-                if ($row['nright'] + 1 == $right) {
26
+                if( $row['nright'] + 1 == $right ) {
27 27
                     return;
28 28
                 }
29 29
             }
30 30
         };
31 31
 
32
-        while ($row = $result->fetch()) {
32
+        while( $row = $result->fetch() ) {
33 33
             $list[] = [$row['label'], $row['siteid']];
34 34
 
35
-            if ($row['nright'] - $row['nleft'] > 1) {
36
-                $fcn($result, array_merge($parents, [$row['label']]), $row['nright']);
35
+            if( $row['nright'] - $row['nleft'] > 1 ) {
36
+                $fcn( $result, array_merge( $parents, [$row['label']] ), $row['nright'] );
37 37
             }
38 38
         }
39 39
     }
40
-    catch(\Exception $e) {
41
-        $log = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Log\LogManager::class);
42
-        $log->getLogger(__CLASS__)->warning('Unable to retrieve Aimeos sites: ' . $e->getMessage());
40
+    catch( \Exception $e ) {
41
+        $log = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( \TYPO3\CMS\Core\Log\LogManager::class );
42
+        $log->getLogger( __CLASS__ )->warning( 'Unable to retrieve Aimeos sites: ' . $e->getMessage() );
43 43
     }
44 44
 
45 45
     return $list;
46 46
 };
47 47
 
48 48
 
49
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_users', [
49
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns( 'be_users', [
50 50
     'siteid' => [
51 51
         'label' => 'LLL:EXT:aimeos/Resources/Private/Language/admin.xlf:beusers_site.title',
52 52
         'config' => [
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             'items' => $beUsersSiteFcn(),
56 56
         ]
57 57
     ]
58
-]);
58
+] );
59 59
 
60
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_users', 'siteid', '', 'after:password');
60
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( 'be_users', 'siteid', '', 'after:password' );
61 61
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
     $list = [['', '']];
9 9
 
10
-    try {
10
+    try
11
+    {
11 12
         $config = \Aimeos\Aimeos\Base::config();
12 13
         $context = \Aimeos\Aimeos\Base::context($config);
13 14
 
@@ -37,7 +38,8 @@  discard block
 block discarded – undo
37 38
             }
38 39
         }
39 40
     }
40
-    catch(\Exception $e) {
41
+    catch(\Exception $e)
42
+    {
41 43
         $log = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Log\LogManager::class);
42 44
         $log->getLogger(__CLASS__)->warning('Unable to retrieve Aimeos sites: ' . $e->getMessage());
43 45
     }
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/tt_content.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -1,141 +1,141 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-defined('TYPO3') or die();
3
+defined( 'TYPO3' ) or die();
4 4
 
5 5
 
6 6
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_jsonapi'] = 'pi_flexform';
7
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_jsonapi', 'FILE:EXT:aimeos/Configuration/FlexForms/Jsonapi.xml');
8
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'jsonapi', 'Aimeos Shop - JSON REST API');
7
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_jsonapi', 'FILE:EXT:aimeos/Configuration/FlexForms/Jsonapi.xml' );
8
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'jsonapi', 'Aimeos Shop - JSON REST API' );
9 9
 
10 10
 
11 11
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_locale-select'] = 'pi_flexform';
12
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_locale-select', 'FILE:EXT:aimeos/Configuration/FlexForms/LocaleSelect.xml');
13
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'locale-select', 'Aimeos Shop - Locale selector');
12
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_locale-select', 'FILE:EXT:aimeos/Configuration/FlexForms/LocaleSelect.xml' );
13
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'locale-select', 'Aimeos Shop - Locale selector' );
14 14
 
15 15
 
16 16
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-attribute'] = 'pi_flexform';
17
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-attribute', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogAttribute.xml');
18
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-attribute', 'Aimeos Shop - Catalog attributes');
17
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-attribute', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogAttribute.xml' );
18
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-attribute', 'Aimeos Shop - Catalog attributes' );
19 19
 
20 20
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-count'] = 'pi_flexform';
21
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-count', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogCount.xml');
22
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-count', 'Aimeos Shop - Catalog count JSON');
21
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-count', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogCount.xml' );
22
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-count', 'Aimeos Shop - Catalog count JSON' );
23 23
 
24 24
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-detail'] = 'pi_flexform';
25
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-detail', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogDetail.xml');
26
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-detail', 'Aimeos Shop - Catalog detail');
25
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-detail', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogDetail.xml' );
26
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-detail', 'Aimeos Shop - Catalog detail' );
27 27
 
28 28
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-filter'] = 'pi_flexform';
29
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-filter', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogFilter.xml');
30
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-filter', 'Aimeos Shop - Catalog filter');
29
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-filter', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogFilter.xml' );
30
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-filter', 'Aimeos Shop - Catalog filter' );
31 31
 
32 32
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-home'] = 'pi_flexform';
33
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-home', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogHome.xml');
34
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-home', 'Aimeos Shop - Catalog home');
33
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-home', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogHome.xml' );
34
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-home', 'Aimeos Shop - Catalog home' );
35 35
 
36 36
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-list'] = 'pi_flexform';
37
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-list', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogList.xml');
38
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-list', 'Aimeos Shop - Catalog list');
37
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-list', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogList.xml' );
38
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-list', 'Aimeos Shop - Catalog list' );
39 39
 
40 40
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-price'] = 'pi_flexform';
41
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-price', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogPrice.xml');
42
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-price', 'Aimeos Shop - Catalog price');
41
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-price', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogPrice.xml' );
42
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-price', 'Aimeos Shop - Catalog price' );
43 43
 
44 44
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-search'] = 'pi_flexform';
45
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-search', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSearch.xml');
46
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-search', 'Aimeos Shop - Catalog search');
45
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-search', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSearch.xml' );
46
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-search', 'Aimeos Shop - Catalog search' );
47 47
 
48 48
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-session'] = 'pi_flexform';
49
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-session', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSession.xml');
50
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-session', 'Aimeos Shop - Catalog user related session');
49
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-session', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSession.xml' );
50
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-session', 'Aimeos Shop - Catalog user related session' );
51 51
 
52 52
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-stage'] = 'pi_flexform';
53
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-stage', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogStage.xml');
54
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-stage', 'Aimeos Shop - Catalog stage area');
53
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-stage', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogStage.xml' );
54
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-stage', 'Aimeos Shop - Catalog stage area' );
55 55
 
56 56
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-stock'] = 'pi_flexform';
57
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-stock', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogStock.xml');
58
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-stock', 'Aimeos Shop - Catalog stock JSON');
57
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-stock', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogStock.xml' );
58
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-stock', 'Aimeos Shop - Catalog stock JSON' );
59 59
 
60 60
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-suggest'] = 'pi_flexform';
61
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-suggest', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSuggest.xml');
62
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-suggest', 'Aimeos Shop - Catalog suggest JSON');
61
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-suggest', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSuggest.xml' );
62
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-suggest', 'Aimeos Shop - Catalog suggest JSON' );
63 63
 
64 64
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-supplier'] = 'pi_flexform';
65
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-supplier', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSupplier.xml');
66
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-supplier', 'Aimeos Shop - Catalog supplier');
65
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-supplier', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogSupplier.xml' );
66
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-supplier', 'Aimeos Shop - Catalog supplier' );
67 67
 
68 68
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_catalog-tree'] = 'pi_flexform';
69
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_catalog-tree', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogTree.xml');
70
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'catalog-tree', 'Aimeos Shop - Catalog tree');
69
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_catalog-tree', 'FILE:EXT:aimeos/Configuration/FlexForms/CatalogTree.xml' );
70
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'catalog-tree', 'Aimeos Shop - Catalog tree' );
71 71
 
72 72
 
73 73
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_basket-bulk'] = 'pi_flexform';
74
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_basket-bulk', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketBulk.xml');
75
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'basket-bulk', 'Aimeos Shop - Basket bulk order');
74
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_basket-bulk', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketBulk.xml' );
75
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'basket-bulk', 'Aimeos Shop - Basket bulk order' );
76 76
 
77 77
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_basket-related'] = 'pi_flexform';
78
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_basket-related', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketRelated.xml');
79
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'basket-related', 'Aimeos Shop - Basket related');
78
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_basket-related', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketRelated.xml' );
79
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'basket-related', 'Aimeos Shop - Basket related' );
80 80
 
81 81
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_basket-small'] = 'pi_flexform';
82
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_basket-small', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketSmall.xml');
83
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'basket-small', 'Aimeos Shop - Basket small');
82
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_basket-small', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketSmall.xml' );
83
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'basket-small', 'Aimeos Shop - Basket small' );
84 84
 
85 85
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_basket-standard'] = 'pi_flexform';
86
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_basket-standard', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketStandard.xml');
87
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'basket-standard', 'Aimeos Shop - Basket standard');
86
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_basket-standard', 'FILE:EXT:aimeos/Configuration/FlexForms/BasketStandard.xml' );
87
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'basket-standard', 'Aimeos Shop - Basket standard' );
88 88
 
89 89
 
90 90
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_checkout-confirm'] = 'pi_flexform';
91
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_checkout-confirm', 'FILE:EXT:aimeos/Configuration/FlexForms/CheckoutConfirm.xml');
92
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'checkout-confirm', 'Aimeos Shop - Checkout confirm');
91
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_checkout-confirm', 'FILE:EXT:aimeos/Configuration/FlexForms/CheckoutConfirm.xml' );
92
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'checkout-confirm', 'Aimeos Shop - Checkout confirm' );
93 93
 
94 94
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_checkout-standard'] = 'pi_flexform';
95
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_checkout-standard', 'FILE:EXT:aimeos/Configuration/FlexForms/CheckoutStandard.xml');
96
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'checkout-standard', 'Aimeos Shop - Checkout standard');
95
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_checkout-standard', 'FILE:EXT:aimeos/Configuration/FlexForms/CheckoutStandard.xml' );
96
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'checkout-standard', 'Aimeos Shop - Checkout standard' );
97 97
 
98 98
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_checkout-update'] = 'pi_flexform';
99
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_checkout-update', 'FILE:EXT:aimeos/Configuration/FlexForms/CheckoutUpdate.xml');
100
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'checkout-update', 'Aimeos Shop - Checkout payment update');
99
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_checkout-update', 'FILE:EXT:aimeos/Configuration/FlexForms/CheckoutUpdate.xml' );
100
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'checkout-update', 'Aimeos Shop - Checkout payment update' );
101 101
 
102 102
 
103 103
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-basket'] = 'pi_flexform';
104
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-basket', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountBasket.xml');
105
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-basket', 'Aimeos Shop - Account basket');
104
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-basket', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountBasket.xml' );
105
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-basket', 'Aimeos Shop - Account basket' );
106 106
 
107 107
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-download'] = 'pi_flexform';
108
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-download', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountDownload.xml');
109
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-download', 'Aimeos Shop - Account download');
108
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-download', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountDownload.xml' );
109
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-download', 'Aimeos Shop - Account download' );
110 110
 
111 111
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-history'] = 'pi_flexform';
112
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-history', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountHistory.xml');
113
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-history', 'Aimeos Shop - Account history');
112
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-history', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountHistory.xml' );
113
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-history', 'Aimeos Shop - Account history' );
114 114
 
115 115
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-favorite'] = 'pi_flexform';
116
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-favorite', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountFavorite.xml');
117
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-favorite', 'Aimeos Shop - Account favorite');
116
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-favorite', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountFavorite.xml' );
117
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-favorite', 'Aimeos Shop - Account favorite' );
118 118
 
119 119
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-profile'] = 'pi_flexform';
120
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-profile', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountProfile.xml');
121
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-profile', 'Aimeos Shop - Account profile');
120
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-profile', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountProfile.xml' );
121
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-profile', 'Aimeos Shop - Account profile' );
122 122
 
123 123
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-review'] = 'pi_flexform';
124
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-review', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountReview.xml');
125
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-review', 'Aimeos Shop - Account review');
124
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-review', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountReview.xml' );
125
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-review', 'Aimeos Shop - Account review' );
126 126
 
127 127
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-subscription'] = 'pi_flexform';
128
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-subscription', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountSubscription.xml');
129
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-subscription', 'Aimeos Shop - Account subscriptions');
128
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-subscription', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountSubscription.xml' );
129
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-subscription', 'Aimeos Shop - Account subscriptions' );
130 130
 
131 131
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_account-watch'] = 'pi_flexform';
132
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_account-watch', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountWatch.xml');
133
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'account-watch', 'Aimeos Shop - Account watch list');
132
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_account-watch', 'FILE:EXT:aimeos/Configuration/FlexForms/AccountWatch.xml' );
133
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'account-watch', 'Aimeos Shop - Account watch list' );
134 134
 
135 135
 
136 136
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['aimeos_supplier-detail'] = 'pi_flexform';
137
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('aimeos_supplier-detail', 'FILE:EXT:aimeos/Configuration/FlexForms/SupplierDetail.xml');
138
-\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Aimeos.aimeos', 'supplier-detail', 'Aimeos Shop - Supplier detail');
137
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue( 'aimeos_supplier-detail', 'FILE:EXT:aimeos/Configuration/FlexForms/SupplierDetail.xml' );
138
+\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( 'Aimeos.aimeos', 'supplier-detail', 'Aimeos Shop - Supplier detail' );
139 139
 
140 140
 
141 141
 ?>
142 142
\ No newline at end of file
Please login to merge, or discard this patch.