Passed
Push — master ( 5788d1...3b28d2 )
by Aimeos
04:17
created
src/MShop/Plugin/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -451,8 +451,7 @@
 block discarded – undo
451 451
 			 */
452 452
 			$path = 'mshop/plugin/manager/insert';
453 453
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
454
-		}
455
-		else
454
+		} else
456 455
 		{
457 456
 			/** mshop/plugin/manager/update/mysql
458 457
 			 * Updates an existing plugin record in the database
Please login to merge, or discard this patch.
src/MShop/Rule/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -484,8 +484,7 @@
 block discarded – undo
484 484
 			 */
485 485
 			$path = 'mshop/rule/manager/insert';
486 486
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
487
-		}
488
-		else
487
+		} else
489 488
 		{
490 489
 			/** mshop/rule/manager/update/mysql
491 490
 			 * Updates an existing rule record in the database
Please login to merge, or discard this patch.
src/MShop/Price/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -548,8 +548,7 @@
 block discarded – undo
548 548
 			 */
549 549
 			$path = 'mshop/price/manager/insert';
550 550
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
551
-		}
552
-		else
551
+		} else
553 552
 		{
554 553
 			/** mshop/price/manager/update/mysql
555 554
 			 * Updates an existing price record in the database
Please login to merge, or discard this patch.
src/MShop/Stock/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -314,8 +314,7 @@
 block discarded – undo
314 314
 			 */
315 315
 			$path = 'mshop/stock/manager/insert';
316 316
 			$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
317
-		}
318
-		else
317
+		} else
319 318
 		{
320 319
 			/** mshop/stock/manager/update/mysql
321 320
 			 * Updates an existing product stock record in the database
Please login to merge, or discard this patch.
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.