Passed
Pull Request — master (#255)
by Laurent
06:00
created
lib/mshoplib/src/MShop/Coupon/Manager/Code/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -421,8 +421,7 @@
 block discarded – undo
421 421
 				 */
422 422
 				$path = 'mshop/coupon/manager/code/insert';
423 423
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
424
-			}
425
-			else
424
+			} else
426 425
 			{
427 426
 				/** mshop/coupon/manager/code/update/mysql
428 427
 				 * Updates an existing coupon code record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Coupon/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,8 +279,7 @@
 block discarded – undo
279 279
 				 */
280 280
 				$path = 'mshop/coupon/manager/insert';
281 281
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
282
-			}
283
-			else
282
+			} else
284 283
 			{
285 284
 				/** mshop/coupon/manager/update/mysql
286 285
 				 * Updates an existing coupon record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Supplier/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -349,8 +349,7 @@
 block discarded – undo
349 349
 				 */
350 350
 				$path = 'mshop/supplier/manager/insert';
351 351
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
352
-			}
353
-			else
352
+			} else
354 353
 			{
355 354
 				/** mshop/supplier/manager/update/mysql
356 355
 				 * Updates an existing supplier record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Tag/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,8 +203,7 @@
 block discarded – undo
203 203
 				 */
204 204
 				$path = 'mshop/tag/manager/insert';
205 205
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
206
-			}
207
-			else
206
+			} else
208 207
 			{
209 208
 				/** mshop/tag/manager/update/mysql
210 209
 				 * Updates an existing tag tag record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -390,8 +390,7 @@
 block discarded – undo
390 390
 				 */
391 391
 				$path = 'mshop/service/manager/insert';
392 392
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
393
-			}
394
-			else
393
+			} else
395 394
 			{
396 395
 				/** mshop/service/manager/update/mysql
397 396
 				 * Updates an existing service record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Customer/Manager/Group/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -305,8 +305,7 @@
 block discarded – undo
305 305
 				 */
306 306
 				$path = 'mshop/customer/manager/group/insert';
307 307
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
308
-			}
309
-			else
308
+			} else
310 309
 			{
311 310
 				/** mshop/customer/manager/group/update/mysql
312 311
 				 * Updates an existing customer group record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Customer/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -513,8 +513,7 @@
 block discarded – undo
513 513
 				 */
514 514
 				$path = 'mshop/customer/manager/insert';
515 515
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
516
-			}
517
-			else
516
+			} else
518 517
 			{
519 518
 				/** mshop/customer/manager/update/mysql
520 519
 				 * Updates an existing customer record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Review/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -323,8 +323,7 @@
 block discarded – undo
323 323
 				 */
324 324
 				$path = 'mshop/review/manager/insert';
325 325
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
326
-			}
327
-			else
326
+			} else
328 327
 			{
329 328
 				/** mshop/review/manager/update/mysql
330 329
 				 * Updates an existing review record in the database
Please login to merge, or discard this patch.
lib/mshoplib/setup/unitperf/CatalogAddPerfData.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@  discard block
 block discarded – undo
79 79
 				for( $i = 0; $i < $numCatPerLevel; $i++ ) {
80 80
 					$treeFcn( $parents, $catItem->getId(), $numCatPerLevel, $level - 1, $catLabel . '-' . ( $i + 1 ), $i );
81 81
 				}
82
-			}
83
-			else
82
+			} else
84 83
 			{
85 84
 				$fcn = function( array $parents, $catLabel ) {
86 85
 
@@ -139,9 +138,12 @@  discard block
 block discarded – undo
139 138
 
140 139
 		while( true )
141 140
 		{
142
-			try {
141
+			try
142
+			{
143 143
 				return $catalogManager->insert( $item, $parentId );
144
-			} catch( \Aimeos\MW\DB\Exception $e ) {
144
+			}
145
+			catch( \Aimeos\MW\DB\Exception $e )
146
+			{
145 147
 				if( $e->getCode() !== 40001 ) { throw $e; } // transaction deadlock
146 148
 			}
147 149
 		}
Please login to merge, or discard this patch.