Passed
Push — master ( 3c1709...6cc8e0 )
by Aimeos
03:13
created
Classes/Setup.php 2 patches
Spacing   +68 added lines, -68 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,30 +128,30 @@  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 = $extconf->get('siteCode', 'default');
141
-        $template = $extconf->get('siteTpl', 'default');
142
-        $codelen = $extconf->get('codeLength', 64);
140
+        $site = $extconf->get( 'siteCode', 'default' );
141
+        $template = $extconf->get( 'siteTpl', 'default' );
142
+        $codelen = $extconf->get( 'codeLength', 64 );
143 143
 
144 144
         $boostrap = \Aimeos\Aimeos\Base::aimeos();
145
-        $ctx = self::context(['setup' => ['default' => ['demo' => (string) $demo]]])->setEditor('setup');
145
+        $ctx = self::context( ['setup' => ['default' => ['demo' => (string) $demo]]] )->setEditor( 'setup' );
146 146
 
147
-        \Aimeos\Setup::use($boostrap, ['codelength' => $codelen])->verbose('vvv')
148
-            ->context($ctx->setEditor('aimeos:setup'))
149
-            ->up($site, $template);
147
+        \Aimeos\Setup::use( $boostrap, ['codelength' => $codelen] )->verbose( 'vvv' )
148
+            ->context( $ctx->setEditor( 'aimeos:setup' ) )
149
+            ->up( $site, $template );
150 150
 
151
-        if (defined('TYPO3_version') && version_compare(constant('TYPO3_version'), '11.0.0', '<')) {
152
-            $extconf->set('aimeos', 'useDemoData', '');
151
+        if( defined( 'TYPO3_version' ) && version_compare( constant( 'TYPO3_version' ), '11.0.0', '<' ) ) {
152
+            $extconf->set( 'aimeos', 'useDemoData', '' );
153 153
         } else {
154
-            $extconf->set('aimeos', ['useDemoData' => '']);
154
+            $extconf->set( 'aimeos', ['useDemoData' => ''] );
155 155
         }
156 156
     }
157 157
 
@@ -162,45 +162,45 @@  discard block
 block discarded – undo
162 162
      * @param array $sql List of SQL statements
163 163
      * @return array SQL statements required for the install tool
164 164
      */
165
-    public static function schema(array $sql) : array
165
+    public static function schema( array $sql ) : array
166 166
     {
167 167
         $ctx = self::getContext();
168
-        $connectionNames = array_keys($ctx->getConfig()->get( 'resource'));
169
-        $connectionNames = array_filter($connectionNames, fn (string $key): bool => str_starts_with($key, 'db'));
168
+        $connectionNames = array_keys( $ctx->getConfig()->get( 'resource' ) );
169
+        $connectionNames = array_filter( $connectionNames, fn ( string $key ): bool => str_starts_with( $key, 'db' ) );
170 170
 
171
-        foreach ($connectionNames as $connectionName) {
172
-            $conn = $ctx->db($connectionName);
173
-            $adapter = $ctx->config('resource/' . $connectionName . '/adapter');
171
+        foreach( $connectionNames as $connectionName ) {
172
+            $conn = $ctx->db( $connectionName );
173
+            $adapter = $ctx->config( 'resource/' . $connectionName . '/adapter' );
174 174
 
175 175
             $tables = [];
176
-            foreach(['fe_users_', 'madmin_', 'mshop_'] as $prefix) {
177
-                switch ($adapter) {
176
+            foreach( ['fe_users_', 'madmin_', 'mshop_'] as $prefix ) {
177
+                switch( $adapter ) {
178 178
                     case "pgsql": $sql = 'SELECT tablename FROM pg_catalog.pg_tables where tablename ~ \'^' . $prefix . '\''; break;
179 179
                     default: $sql = 'SHOW TABLES like \'' . $prefix . '%\'';
180 180
                 }
181 181
 
182
-                $result = $conn->create($sql)->execute();
182
+                $result = $conn->create( $sql )->execute();
183 183
 
184
-                while(($row = $result->fetch(\Aimeos\Base\DB\Result\Base::FETCH_NUM)) !== null) {
184
+                while( ( $row = $result->fetch( \Aimeos\Base\DB\Result\Base::FETCH_NUM ) ) !== null ) {
185 185
                     $tables[] = $row[0];
186 186
                 }
187 187
             }
188 188
 
189
-            foreach($tables as $table) {
190
-                switch ($adapter) {
189
+            foreach( $tables as $table ) {
190
+                switch( $adapter ) {
191 191
                     case "pgsql":  $sql = 'CREATE TABLE IF NOT EXISTS ' . $table . '()'; break;
192 192
                     default: $sql = 'SHOW CREATE TABLE `' . $table . '`';
193 193
                 }
194 194
 
195
-                $result = $conn->create($sql)->execute();
195
+                $result = $conn->create( $sql )->execute();
196 196
 
197
-                while(($row = $result->fetch(\Aimeos\Base\DB\Result\Base::FETCH_NUM)) !== null) {
197
+                while( ( $row = $result->fetch( \Aimeos\Base\DB\Result\Base::FETCH_NUM ) ) !== null ) {
198 198
                     $str = $row[1];
199 199
 
200
-                    $str = str_replace('"', '`', $str);
201
-                    $str = preg_replace('/CONSTRAINT `[a-zA-Z0-9_-]+` /', '', $str);
202
-                    $str = preg_replace('/ DEFAULT CHARSET=[^ ;]+/', '', $str);
203
-                    $str = preg_replace('/ COLLATE=[^ ;]+/', '', $str);
200
+                    $str = str_replace( '"', '`', $str );
201
+                    $str = preg_replace( '/CONSTRAINT `[a-zA-Z0-9_-]+` /', '', $str );
202
+                    $str = preg_replace( '/ DEFAULT CHARSET=[^ ;]+/', '', $str );
203
+                    $str = preg_replace( '/ COLLATE=[^ ;]+/', '', $str );
204 204
 
205 205
                     $sql[] = $str . ";\n";
206 206
                 }
@@ -216,9 +216,9 @@  discard block
 block discarded – undo
216 216
      *
217 217
      * @param string|null $extname Installed extension name
218 218
      */
219
-    public static function executeOnSignal(string $extname = null)
219
+    public static function executeOnSignal( string $extname = null )
220 220
     {
221
-        self::signal($extname);
221
+        self::signal( $extname );
222 222
     }
223 223
 
224 224
 
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
      *
228 228
      * @param string|null $extname Installed extension name
229 229
      */
230
-    public static function signal(string $extname = null)
230
+    public static function signal( string $extname = null )
231 231
     {
232
-        if ($extname === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig('autoSetup', true)) {
232
+        if( $extname === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig( 'autoSetup', true ) ) {
233 233
             self::execute();
234 234
         }
235 235
     }
@@ -240,12 +240,12 @@  discard block
 block discarded – undo
240 240
      *
241 241
      * @param AlterTableDefinitionStatementsEvent $event Event object
242 242
      */
243
-    public function schemaEvent(AlterTableDefinitionStatementsEvent $event)
243
+    public function schemaEvent( AlterTableDefinitionStatementsEvent $event )
244 244
     {
245
-        $list = self::schema([]);
245
+        $list = self::schema( [] );
246 246
 
247
-        foreach ($list['sqlString'] ?? [] as $sql) {
248
-            $event->addSqlData($sql);
247
+        foreach( $list['sqlString'] ?? [] as $sql ) {
248
+            $event->addSqlData( $sql );
249 249
         }
250 250
     }
251 251
 
@@ -255,9 +255,9 @@  discard block
 block discarded – undo
255 255
      *
256 256
      * @param AfterPackageActivationEvent $event Event object
257 257
      */
258
-    public function setupEvent(AfterPackageActivationEvent $event)
258
+    public function setupEvent( AfterPackageActivationEvent $event )
259 259
     {
260
-        if ($event->getPackageKey() === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig('autoSetup', true)) {
260
+        if( $event->getPackageKey() === 'aimeos' && \Aimeos\Aimeos\Base::getExtConfig( 'autoSetup', true ) ) {
261 261
             self::execute();
262 262
         }
263 263
     }
@@ -269,34 +269,34 @@  discard block
 block discarded – undo
269 269
      * @param array $config Nested array of configuration settings
270 270
      * @return \Aimeos\MShop\ContextIface Context object
271 271
      */
272
-    protected static function context(array $config = []) : \Aimeos\MShop\ContextIface
272
+    protected static function context( array $config = [] ) : \Aimeos\MShop\ContextIface
273 273
     {
274
-        $aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('aimeos');
274
+        $aimeosExtPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath( 'aimeos' );
275 275
 
276
-        if (file_exists($aimeosExtPath . '/Resources/Libraries/autoload.php') === true) {
276
+        if( file_exists( $aimeosExtPath . '/Resources/Libraries/autoload.php' ) === true ) {
277 277
             require_once $aimeosExtPath . '/Resources/Libraries/autoload.php';
278 278
         }
279 279
 
280 280
         $ctx = new \Aimeos\MShop\Context();
281
-        $conf = \Aimeos\Aimeos\Base::config($config);
281
+        $conf = \Aimeos\Aimeos\Base::config( $config );
282 282
 
283
-        $ctx->setConfig($conf);
284
-        $ctx->setDatabaseManager(new \Aimeos\Base\DB\Manager\Standard($conf->get('resource', []), 'DBAL'));
285
-        $ctx->setFilesystemManager(new \Aimeos\Base\Filesystem\Manager\Standard($conf->get('resource', [])));
286
-        $ctx->setLogger(new \Aimeos\Base\Logger\Errorlog(\Aimeos\Base\Logger\Iface::INFO));
287
-        $ctx->setSession(new \Aimeos\Base\Session\None());
288
-        $ctx->setCache(new \Aimeos\Base\Cache\None());
283
+        $ctx->setConfig( $conf );
284
+        $ctx->setDatabaseManager( new \Aimeos\Base\DB\Manager\Standard( $conf->get( 'resource', [] ), 'DBAL' ) );
285
+        $ctx->setFilesystemManager( new \Aimeos\Base\Filesystem\Manager\Standard( $conf->get( 'resource', [] ) ) );
286
+        $ctx->setLogger( new \Aimeos\Base\Logger\Errorlog( \Aimeos\Base\Logger\Iface::INFO ) );
287
+        $ctx->setSession( new \Aimeos\Base\Session\None() );
288
+        $ctx->setCache( new \Aimeos\Base\Cache\None() );
289 289
 
290 290
         // Reset before child processes are spawned to avoid lost DB connections afterwards (TYPO3 9.4 and above)
291
-        if (php_sapi_name() === 'cli' && class_exists('\TYPO3\CMS\Core\Database\ConnectionPool')
292
-            && method_exists('\TYPO3\CMS\Core\Database\ConnectionPool', 'resetConnections')
291
+        if( php_sapi_name() === 'cli' && class_exists( '\TYPO3\CMS\Core\Database\ConnectionPool' )
292
+            && method_exists( '\TYPO3\CMS\Core\Database\ConnectionPool', 'resetConnections' )
293 293
         ) {
294
-            $ctx->setProcess(new \Aimeos\Base\Process\Pcntl(\Aimeos\Aimeos\Base::getExtConfig('pcntlMax', 4)));
294
+            $ctx->setProcess( new \Aimeos\Base\Process\Pcntl( \Aimeos\Aimeos\Base::getExtConfig( 'pcntlMax', 4 ) ) );
295 295
         } else {
296
-            $ctx->setProcess(new \Aimeos\Base\Process\None());
296
+            $ctx->setProcess( new \Aimeos\Base\Process\None() );
297 297
         }
298 298
 
299
-        $factory = GeneralUtility::makeInstance('TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory');
300
-        return $ctx->setPassword(new \Aimeos\Base\Password\Typo3($factory->getDefaultHashInstance('FE')));
299
+        $factory = GeneralUtility::makeInstance( 'TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory' );
300
+        return $ctx->setPassword( new \Aimeos\Base\Password\Typo3( $factory->getDefaultHashInstance( 'FE' ) ) );
301 301
     }
302 302
 }
Please login to merge, or discard this patch.
Braces   +9 added lines, -4 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());
@@ -174,7 +177,8 @@  discard block
 block discarded – undo
174 177
 
175 178
             $tables = [];
176 179
             foreach(['fe_users_', 'madmin_', 'mshop_'] as $prefix) {
177
-                switch ($adapter) {
180
+                switch ($adapter)
181
+                {
178 182
                     case "pgsql": $sql = 'SELECT tablename FROM pg_catalog.pg_tables where tablename ~ \'^' . $prefix . '\''; break;
179 183
                     default: $sql = 'SHOW TABLES like \'' . $prefix . '%\'';
180 184
                 }
@@ -187,7 +191,8 @@  discard block
 block discarded – undo
187 191
             }
188 192
 
189 193
             foreach($tables as $table) {
190
-                switch ($adapter) {
194
+                switch ($adapter)
195
+                {
191 196
                     case "pgsql":  $sql = 'CREATE TABLE IF NOT EXISTS ' . $table . '()'; break;
192 197
                     default: $sql = 'SHOW CREATE TABLE `' . $table . '`';
193 198
                 }
Please login to merge, or discard this patch.
Resources/Private/Config/resource.php 4 patches
Switch Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 }
15 15
 
16 16
 switch($adapter) {
17
-	case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break;
18
-	default: $stmt = [];
17
+	    case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break;
18
+	    default: $stmt = [];
19 19
 }
20 20
 
21 21
 return [
Please login to merge, or discard this patch.
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -5,82 +5,82 @@
 block discarded – undo
5 5
 $driver = $defaultConnection['driver'];
6 6
 
7 7
 switch($driver) {
8
-	case 'mysqli':
9
-	case 'pdo_mysql': $adapter = 'mysql'; break;
10
-	case 'pdo_oci': $adapter = 'oracle'; break;
11
-	case 'pdo_pgsql': $adapter = 'pgsql'; break;
12
-	case 'pdo_sqlite': $adapter = 'sqlite'; break;
13
-	case 'pdo_sqlsrv': $adapter = 'sqlsrv'; break;
14
-	default: $adapter = $driver;
8
+    case 'mysqli':
9
+    case 'pdo_mysql': $adapter = 'mysql'; break;
10
+    case 'pdo_oci': $adapter = 'oracle'; break;
11
+    case 'pdo_pgsql': $adapter = 'pgsql'; break;
12
+    case 'pdo_sqlite': $adapter = 'sqlite'; break;
13
+    case 'pdo_sqlsrv': $adapter = 'sqlsrv'; break;
14
+    default: $adapter = $driver;
15 15
 }
16 16
 
17 17
 switch($adapter) {
18
-	case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break;
19
-	default: $stmt = [];
18
+    case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break;
19
+    default: $stmt = [];
20 20
 }
21 21
 
22 22
 return [
23
-	'db' => [
24
-		'adapter' => $adapter,
25
-		'host' => $defaultConnection['host'] ?? null,
26
-		'port' => $defaultConnection['port'] ?? null,
27
-		'socket' => $defaultConnection['socket'] ?? null,
28
-		'database' => $defaultConnection['dbname'] ?? null,
29
-		'username' => $defaultConnection['user'] ?? null,
30
-		'password' => $defaultConnection['password'] ?? null,
31
-		'stmt' => $stmt,
32
-		'defaultTableOptions' => [
33
-			'charset' => $defaultConnection['tableoptions']['charset'] ?? 'utf8',
34
-			'collate' => $defaultConnection['tableoptions']['collate'] ?? 'utf8_unicode_ci',
35
-		],
36
-		'limit' => 3,
37
-	],
38
-	'fs' => [
39
-		'adapter' => 'Standard',
40
-		'baseurl' => '/uploads/tx_aimeos',
41
-		'basedir' => $publicPath . '/uploads/tx_aimeos',
42
-		'tempdir' => $publicPath . '/typo3temp',
43
-	],
44
-	'fs-media' => [
45
-		'adapter' => 'Standard',
46
-		'baseurl' => '/uploads/tx_aimeos',
47
-		'basedir' => $publicPath . '/uploads/tx_aimeos',
48
-		'tempdir' => $publicPath . '/typo3temp',
49
-	],
50
-	'fs-mimeicon' => [
51
-		'adapter' => 'Standard',
52
-		'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons',
53
-		'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons',
54
-		'tempdir' => $publicPath . '/typo3temp',
55
-	],
56
-	'fs-theme' => [
57
-		'adapter' => 'Standard',
58
-		'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Themes',
59
-		'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Themes',
60
-		'tempdir' => $publicPath . '/typo3temp',
61
-	],
62
-	'fs-admin' => [
63
-		'adapter' => 'Standard',
64
-		'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/admin',
65
-		'tempdir' => $publicPath . '/typo3temp',
66
-	],
67
-	'fs-export' => [
68
-		'adapter' => 'Standard',
69
-		'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/export',
70
-		'tempdir' => $publicPath . '/typo3temp',
71
-	],
72
-	'fs-import' => [
73
-		'adapter' => 'Standard',
74
-		'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/import',
75
-		'tempdir' => $publicPath . '/typo3temp',
76
-	],
77
-	'fs-secure' => [
78
-		'adapter' => 'Standard',
79
-		'basedir' => $publicPath . '/uploads/tx_aimeos/.secure',
80
-		'tempdir' => $publicPath . '/typo3temp',
81
-	],
82
-	'mq' => [
83
-		'adapter' => 'Standard',
84
-		'db' => 'db',
85
-	],
23
+    'db' => [
24
+        'adapter' => $adapter,
25
+        'host' => $defaultConnection['host'] ?? null,
26
+        'port' => $defaultConnection['port'] ?? null,
27
+        'socket' => $defaultConnection['socket'] ?? null,
28
+        'database' => $defaultConnection['dbname'] ?? null,
29
+        'username' => $defaultConnection['user'] ?? null,
30
+        'password' => $defaultConnection['password'] ?? null,
31
+        'stmt' => $stmt,
32
+        'defaultTableOptions' => [
33
+            'charset' => $defaultConnection['tableoptions']['charset'] ?? 'utf8',
34
+            'collate' => $defaultConnection['tableoptions']['collate'] ?? 'utf8_unicode_ci',
35
+        ],
36
+        'limit' => 3,
37
+    ],
38
+    'fs' => [
39
+        'adapter' => 'Standard',
40
+        'baseurl' => '/uploads/tx_aimeos',
41
+        'basedir' => $publicPath . '/uploads/tx_aimeos',
42
+        'tempdir' => $publicPath . '/typo3temp',
43
+    ],
44
+    'fs-media' => [
45
+        'adapter' => 'Standard',
46
+        'baseurl' => '/uploads/tx_aimeos',
47
+        'basedir' => $publicPath . '/uploads/tx_aimeos',
48
+        'tempdir' => $publicPath . '/typo3temp',
49
+    ],
50
+    'fs-mimeicon' => [
51
+        'adapter' => 'Standard',
52
+        'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons',
53
+        'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Images/Mimeicons',
54
+        'tempdir' => $publicPath . '/typo3temp',
55
+    ],
56
+    'fs-theme' => [
57
+        'adapter' => 'Standard',
58
+        'baseurl' => '/typo3conf/ext/aimeos/Resources/Public/Themes',
59
+        'basedir' => $publicPath . '/typo3conf/ext/aimeos/Resources/Public/Themes',
60
+        'tempdir' => $publicPath . '/typo3temp',
61
+    ],
62
+    'fs-admin' => [
63
+        'adapter' => 'Standard',
64
+        'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/admin',
65
+        'tempdir' => $publicPath . '/typo3temp',
66
+    ],
67
+    'fs-export' => [
68
+        'adapter' => 'Standard',
69
+        'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/export',
70
+        'tempdir' => $publicPath . '/typo3temp',
71
+    ],
72
+    'fs-import' => [
73
+        'adapter' => 'Standard',
74
+        'basedir' => $publicPath . '/uploads/tx_aimeos/.secure/import',
75
+        'tempdir' => $publicPath . '/typo3temp',
76
+    ],
77
+    'fs-secure' => [
78
+        'adapter' => 'Standard',
79
+        'basedir' => $publicPath . '/uploads/tx_aimeos/.secure',
80
+        'tempdir' => $publicPath . '/typo3temp',
81
+    ],
82
+    'mq' => [
83
+        'adapter' => 'Standard',
84
+        'db' => 'db',
85
+    ],
86 86
 ];
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 $defaultConnection = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'];
5 5
 $driver = $defaultConnection['driver'];
6 6
 
7
-switch($driver) {
7
+switch( $driver ) {
8 8
 	case 'mysqli':
9 9
 	case 'pdo_mysql': $adapter = 'mysql'; break;
10 10
 	case 'pdo_oci': $adapter = 'oracle'; break;
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	default: $adapter = $driver;
15 15
 }
16 16
 
17
-switch($adapter) {
17
+switch( $adapter ) {
18 18
 	case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break;
19 19
 	default: $stmt = [];
20 20
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,8 @@  discard block
 block discarded – undo
4 4
 $defaultConnection = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'];
5 5
 $driver = $defaultConnection['driver'];
6 6
 
7
-switch($driver) {
7
+switch($driver)
8
+{
8 9
 	case 'mysqli':
9 10
 	case 'pdo_mysql': $adapter = 'mysql'; break;
10 11
 	case 'pdo_oci': $adapter = 'oracle'; break;
@@ -14,7 +15,8 @@  discard block
 block discarded – undo
14 15
 	default: $adapter = $driver;
15 16
 }
16 17
 
17
-switch($adapter) {
18
+switch($adapter)
19
+{
18 20
 	case 'mysql': $stmt = ["SET SESSION sort_buffer_size=2097144; SET NAMES 'utf8'; SET SESSION sql_mode='ANSI'; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"]; break;
19 21
 	default: $stmt = [];
20 22
 }
Please login to merge, or discard this patch.