Passed
Pull Request — master (#182)
by Simon
05:27
created
lib/mwlib/src/MW/Criteria/Base.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -90,8 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
 		if( in_array( $op, $operators['combine'], true ) ) {
92 92
 			return $this->createCombineExpression( $op, (array) $value );
93
-		}
94
-		else if( in_array( $op, $operators['compare'], true ) ) {
93
+		} else if( in_array( $op, $operators['compare'], true ) ) {
95 94
 			return $this->createCompareExpression( $op, (array) $value );
96 95
 		}
97 96
 
@@ -145,11 +144,9 @@  discard block
 block discarded – undo
145 144
 
146 145
 			if( in_array( $op, $operators['combine'] ) ) {
147 146
 				$results[] = $this->createCombineExpression( $op, (array) $entry[$op] );
148
-			}
149
-			else if( in_array( $op, $operators['compare'] ) ) {
147
+			} else if( in_array( $op, $operators['compare'] ) ) {
150 148
 				$results[] = $this->createCompareExpression( $op, (array) $entry[$op] );
151
-			}
152
-			else {
149
+			} else {
153 150
 				throw new \Aimeos\MW\Common\Exception( sprintf( 'Invalid operator "%1$s"', $op ) );
154 151
 			}
155 152
 		}
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/mwlib/src/MW/Criteria/Expression/Compare/SQL.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -200,16 +200,13 @@
 block discarded – undo
200 200
 			}
201 201
 
202 202
 			return \Aimeos\MW\DB\Statement\Base::PARAM_STR;
203
-		}
204
-		elseif( strpos( $item, '.' ) !== false )
203
+		} elseif( strpos( $item, '.' ) !== false )
205 204
 		{
206 205
 			return \Aimeos\MW\DB\Statement\Base::PARAM_FLOAT;
207
-		}
208
-		elseif( ctype_digit( $item ) !== false )
206
+		} elseif( ctype_digit( $item ) !== false )
209 207
 		{
210 208
 			return \Aimeos\MW\DB\Statement\Base::PARAM_INT;
211
-		}
212
-		elseif( $item === 'null' )
209
+		} elseif( $item === 'null' )
213 210
 		{
214 211
 			return \Aimeos\MW\DB\Statement\Base::PARAM_NULL;
215 212
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Stock/Manager/Nolimit.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,7 @@
 block discarded – undo
137 137
 			foreach( $cond->getExpressions() as $expr ) {
138 138
 				$list = array_merge( $list, $this->getProductCodes( $expr ) );
139 139
 			}
140
-		}
141
-		elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
140
+		} elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
142 141
 		{
143 142
 			if( $cond->getName() === 'stock.productcode' && $cond->getOperator() === '==' ) {
144 143
 				$list = array_merge( $list, (array) $cond->getValue() );
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
@@ -670,9 +670,13 @@
 block discarded – undo
670 670
 				$stmt->bind( 6, $date ); // mtime
671 671
 				$stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
672 672
 
673
-				try {
673
+				try
674
+				{
674 675
 					$stmt->execute()->finish();
675
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
676
+				}
677
+				catch( \Aimeos\MW\DB\Exception $e )
678
+				{
679
+; } // Ignore duplicates
676 680
 			}
677 681
 		}
678 682
 	}
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
@@ -472,9 +472,13 @@
 block discarded – undo
472 472
 					$stmt->bind( 5, $date ); //mtime
473 473
 					$stmt->bind( 6, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
474 474
 
475
-					try {
475
+					try
476
+					{
476 477
 						$stmt->execute()->finish();
477
-					} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
478
+					}
479
+					catch( \Aimeos\MW\DB\Exception $e )
480
+					{
481
+; } // Ignore duplicates
478 482
 				}
479 483
 			}
480 484
 
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
@@ -745,9 +745,13 @@
 block discarded – undo
745 745
 		$stmt->bind( 6, $date ); //mtime
746 746
 		$stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
747 747
 
748
-		try {
748
+		try
749
+		{
749 750
 			$stmt->execute()->finish();
750
-		} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
751
+		}
752
+		catch( \Aimeos\MW\DB\Exception $e )
753
+		{
754
+; } // Ignore duplicates
751 755
 	}
752 756
 
753 757
 
Please login to merge, or discard this patch.