Passed
Push — master ( 8bcf0d...10ee87 )
by Aimeos
06:29
created
lib/mshoplib/setup/MShopAddAttributeData.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,9 @@
 block discarded – undo
72 72
 				$manager->saveItem( $item );
73 73
 				$num++;
74 74
 			}
75
-			catch( \Exception $e ) { ; } // if attribute was already available
75
+			catch( \Exception $e )
76
+			{
77
+; } // if attribute was already available
76 78
 		}
77 79
 
78 80
 		$this->status( $num > 0 ? $num . '/' . $total : 'OK' );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 				$manager->saveItem( $item );
70 70
 				$num++;
71 71
 			}
72
-			catch( \Exception $e ) { ; } // if attribute was already available
72
+			catch( \Exception $e ) {; } // if attribute was already available
73 73
 		}
74 74
 
75 75
 		$this->status( $num > 0 ? $num . '/' . $total : 'OK' );
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddDataAbstract.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@
 block discarded – undo
103 103
 
104 104
 				$attrManager->saveItem( $item );
105 105
 				$id = $item->getId();
106
-			}
107
-			else
106
+			} else
108 107
 			{
109 108
 				$id = $attrItem->getId();
110 109
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddLocaleData.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,9 +240,13 @@
 block discarded – undo
240 240
 			$localeItem->setPosition( $dataset['pos'] );
241 241
 			$localeItem->setStatus( $dataset['status'] );
242 242
 
243
-			try {
243
+			try
244
+			{
244 245
 				$localeItemManager->saveItem( $localeItem );
245
-			} catch( \Exception $e ) {; } // if locale combination was already available
246
+			}
247
+			catch( \Exception $e )
248
+			{
249
+; } // if locale combination was already available
246 250
 		}
247 251
 
248 252
 		$this->status( 'done' );
Please login to merge, or discard this patch.
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/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.