Passed
Push — master ( c9773b...29143b )
by Aimeos
05:44
created
lib/mshoplib/src/MShop/Order/Manager/Base/Base.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -385,8 +385,7 @@  discard block
 block discarded – undo
385 385
 				$attributes[$attribute->getParentId()][] = $attribute;
386 386
 				$attribute->setParentId( null );
387 387
 				$attribute->setId( null );
388
-			}
389
-			else
388
+			} else
390 389
 			{
391 390
 				$attributes[$attribute->getParentId()][$id] = $attribute;
392 391
 			}
@@ -405,8 +404,7 @@  discard block
 block discarded – undo
405 404
 				$map[$item->getBaseId()][$item->getPosition()] = $item;
406 405
 
407 406
 				$subProducts = [];
408
-			}
409
-			else
407
+			} else
410 408
 			{	// in case it's a sub-product
411 409
 				$subProducts[$item->getPosition()] = $item;
412 410
 			}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Payment/DirectDebit.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,9 @@
 block discarded – undo
81 81
 				$feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln;
82 82
 			}
83 83
 		}
84
-		catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available
84
+		catch( \Aimeos\MShop\Order\Exception $e )
85
+		{
86
+; } // If address isn't available
85 87
 
86 88
 		return $this->getConfigItems( $feconfig );
87 89
 	}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 				$feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln;
82 82
 			}
83 83
 		}
84
-		catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available
84
+		catch( \Aimeos\MShop\Order\Exception $e ) {; } // If address isn't available
85 85
 
86 86
 		return $this->getConfigItems( $feconfig );
87 87
 	}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Decorator/Quantity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
98 98
 				foreach( $products as $prodItem ) { // calculate bundled products
99 99
 					$sum += $qty * $prodItem->getQuantity();
100 100
 				}
101
-			}
102
-			else
101
+			} else
103 102
 			{
104 103
 				$sum += $qty;
105 104
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddSupplierData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,7 @@
 block discarded – undo
74 74
 			$this->saveItems( $data );
75 75
 
76 76
 			$this->status( 'added' );
77
-		}
78
-		else
77
+		} else
79 78
 		{
80 79
 			$this->status( 'removed' );
81 80
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/ServiceUniqueCode.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@
 block discarded – undo
76 76
 			$this->release( $conn );
77 77
 
78 78
 			$this->status( 'done' );
79
-		}
80
-		else
79
+		} else
81 80
 		{
82 81
 			$this->status( 'OK' );
83 82
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Attribute/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -713,7 +713,7 @@
 block discarded – undo
713 713
 
714 714
 				try {
715 715
 					$stmt->execute()->finish();
716
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
716
+				} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
717 717
 			}
718 718
 		}
719 719
 	}
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -701,9 +701,13 @@
 block discarded – undo
701 701
 				$stmt->bind( 7, $date ); // mtime
702 702
 				$stmt->bind( 8, $siteid );
703 703
 
704
-				try {
704
+				try
705
+				{
705 706
 					$stmt->execute()->finish();
706
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
707
+				}
708
+				catch( \Aimeos\MW\DB\Exception $e )
709
+				{
710
+; } // Ignore duplicates
707 711
 			}
708 712
 		}
709 713
 	}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Catalog/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -521,7 +521,7 @@
 block discarded – undo
521 521
 
522 522
 					try {
523 523
 						$stmt->execute()->finish();
524
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
524
+					} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
525 525
 				}
526 526
 			}
527 527
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -463,9 +463,13 @@
 block discarded – undo
463 463
 					$stmt->bind( 5, $date ); //mtime
464 464
 					$stmt->bind( 6, $siteid );
465 465
 
466
-					try {
466
+					try
467
+					{
467 468
 						$stmt->execute()->finish();
468
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
469
+					}
470
+					catch( \Aimeos\MW\DB\Exception $e )
471
+					{
472
+; } // Ignore duplicates
469 473
 				}
470 474
 			}
471 475
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Text/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -922,7 +922,7 @@
 block discarded – undo
922 922
 
923 923
 		try {
924 924
 			$stmt->execute()->finish();
925
-		} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
925
+		} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
926 926
 	}
927 927
 
928 928
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -778,9 +778,13 @@
 block discarded – undo
778 778
 		$stmt->bind( 6, $date ); //mtime
779 779
 		$stmt->bind( 7, $siteid );
780 780
 
781
-		try {
781
+		try
782
+		{
782 783
 			$stmt->execute()->finish();
783
-		} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
784
+		}
785
+		catch( \Aimeos\MW\DB\Exception $e )
786
+		{
787
+; } // Ignore duplicates
784 788
 	}
785 789
 
786 790
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Supplier/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -521,7 +521,7 @@
 block discarded – undo
521 521
 
522 522
 					try {
523 523
 						$stmt->execute()->finish();
524
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
524
+					} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
525 525
 				}
526 526
 			}
527 527
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -463,9 +463,13 @@
 block discarded – undo
463 463
 					$stmt->bind( 5, $date ); //mtime
464 464
 					$stmt->bind( 6, $siteid );
465 465
 
466
-					try {
466
+					try
467
+					{
467 468
 						$stmt->execute()->finish();
468
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
469
+					}
470
+					catch( \Aimeos\MW\DB\Exception $e )
471
+					{
472
+; } // Ignore duplicates
469 473
 				}
470 474
 			}
471 475
 
Please login to merge, or discard this patch.