Passed
Push — master ( e7141a...ab4b6a )
by Aimeos
04:16
created
src/MShop/Service/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -496,8 +496,7 @@
 block discarded – undo
496 496
 			 */
497 497
 			$path = 'mshop/service/manager/insert';
498 498
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
499
-		}
500
-		else
499
+		} else
501 500
 		{
502 501
 			/** mshop/service/manager/update/mysql
503 502
 			 * Updates an existing service record in the database
Please login to merge, or discard this patch.
src/MShop/Tag/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -309,8 +309,7 @@
 block discarded – undo
309 309
 			 */
310 310
 			$path = 'mshop/tag/manager/insert';
311 311
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
312
-		}
313
-		else
312
+		} else
314 313
 		{
315 314
 			/** mshop/tag/manager/update/mysql
316 315
 			 * Updates an existing tag tag record in the database
Please login to merge, or discard this patch.
src/MShop/Locale/Manager/Currency/Standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,9 +112,12 @@  discard block
 block discarded – undo
112 112
 	 */
113 113
 	public function create( array $values = [] ) : \Aimeos\MShop\Common\Item\Iface
114 114
 	{
115
-		try {
115
+		try
116
+		{
116 117
 			$values['locale.currency.siteid'] = $this->context()->locale()->getSiteId();
117
-		} catch( \Exception $e ) {
118
+		}
119
+		catch( \Exception $e )
120
+		{
118 121
 			$values['locale.currency.siteid'] = null;
119 122
 		}
120 123
 
@@ -176,8 +179,7 @@  discard block
 block discarded – undo
176 179
 			 */
177 180
 			$path = 'mshop/locale/manager/currency/insert';
178 181
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
179
-		}
180
-		else
182
+		} else
181 183
 		{
182 184
 			/** mshop/locale/manager/currency/update/mysql
183 185
 			 * Updates an existing currency record in the database
Please login to merge, or discard this patch.
src/MShop/Locale/Manager/Language/Standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,9 +112,12 @@  discard block
 block discarded – undo
112 112
 	 */
113 113
 	public function create( array $values = [] ) : \Aimeos\MShop\Common\Item\Iface
114 114
 	{
115
-		try {
115
+		try
116
+		{
116 117
 			$values['locale.language.siteid'] = $this->context()->locale()->getSiteId();
117
-		} catch( \Exception $ex ) {
118
+		}
119
+		catch( \Exception $ex )
120
+		{
118 121
 			$values['locale.language.siteid'] = null;
119 122
 		}
120 123
 
@@ -176,8 +179,7 @@  discard block
 block discarded – undo
176 179
 			 */
177 180
 			$path = 'mshop/locale/manager/language/insert';
178 181
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
179
-		}
180
-		else
182
+		} else
181 183
 		{
182 184
 			/** mshop/locale/manager/language/update/mysql
183 185
 			 * Updates an existing language record in the database
Please login to merge, or discard this patch.
src/MShop/Locale/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -435,8 +435,7 @@
 block discarded – undo
435 435
 			 */
436 436
 			$path = 'mshop/locale/manager/insert';
437 437
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
438
-		}
439
-		else
438
+		} else
440 439
 		{
441 440
 			/** mshop/locale/manager/update/mysql
442 441
 			 * Updates an existing locale record in the database
Please login to merge, or discard this patch.
src/MShop/Text/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -357,8 +357,7 @@
 block discarded – undo
357 357
 			 */
358 358
 			$path = 'mshop/text/manager/insert';
359 359
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
360
-		}
361
-		else
360
+		} else
362 361
 		{
363 362
 			/** mshop/text/manager/update/mysql
364 363
 			 * Updates an existing text record in the database
Please login to merge, or discard this patch.
src/MShop/Media/Manager/Standard.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -515,8 +515,7 @@
 block discarded – undo
515 515
 			 */
516 516
 			$path = 'mshop/media/manager/insert';
517 517
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
518
-		}
519
-		else
518
+		} else
520 519
 		{
521 520
 			/** mshop/media/manager/update/mysql
522 521
 			 * Updates an existing media record in the database
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1162,7 +1162,7 @@
 block discarded – undo
1162 1162
 		$siteId = $context->locale()->getSiteId();
1163 1163
 
1164 1164
 		// the "d" after {siteid} is the required extension for Windows (no dots at the end allowed)
1165
-		return "${siteId}d/preview/${domain}/${filename[0]}/${filename[1]}/${filename}${ext}";
1165
+		return "${siteid}d/preview/${domain}/${filename[0]}/${filename[1]}/${filename}${ext}";
1166 1166
 	}
1167 1167
 
1168 1168
 
Please login to merge, or discard this patch.
src/MShop/Customer/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -619,8 +619,7 @@
 block discarded – undo
619 619
 			 */
620 620
 			$path = 'mshop/customer/manager/insert';
621 621
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
622
-		}
623
-		else
622
+		} else
624 623
 		{
625 624
 			/** mshop/customer/manager/update/mysql
626 625
 			 * Updates an existing customer record in the database
Please login to merge, or discard this patch.
src/MShop/Supplier/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -455,8 +455,7 @@
 block discarded – undo
455 455
 			 */
456 456
 			$path = 'mshop/supplier/manager/insert';
457 457
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
458
-		}
459
-		else
458
+		} else
460 459
 		{
461 460
 			/** mshop/supplier/manager/update/mysql
462 461
 			 * Updates an existing supplier record in the database
Please login to merge, or discard this patch.