Passed
Pull Request — master (#182)
by Simon
05:27
created
lib/mshoplib/setup/ProductAddStockTypeDomainValues.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
 		{
53 53
 			$this->execute( $this->stmt, 'db-product' );
54 54
 			$this->status( 'done' );
55
-		}
56
-		else
55
+		} else
57 56
 		{
58 57
 			$this->status( 'OK' );
59 58
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/ProductMigratePropertyTypeDomain.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,7 @@
 block discarded – undo
81 81
 			} else {
82 82
 				$this->status( 'OK' );
83 83
 			}
84
-		}
85
-		else
84
+		} else
86 85
 		{
87 86
 			$this->status( 'OK' );
88 87
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddCatalogData.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,9 @@  discard block
 block discarded – undo
66 66
 			$this->removeItems( $item->getId(), 'catalog/lists', 'catalog', 'text' );
67 67
 			$this->removeListItems( $item->getId(), 'catalog/lists', 'product' );
68 68
 		}
69
-		catch( \Exception $e ) {; } // If no root node was already inserted into the database
69
+		catch( \Exception $e )
70
+		{
71
+; } // If no root node was already inserted into the database
70 72
 
71 73
 
72 74
 		if( $value === '1' )
@@ -103,8 +105,7 @@  discard block
 block discarded – undo
103 105
 			}
104 106
 
105 107
 			$this->status( 'added' );
106
-		}
107
-		else
108
+		} else
108 109
 		{
109 110
 			$this->status( 'removed' );
110 111
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddServiceData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
 			}
90 90
 
91 91
 			$this->status( 'added' );
92
-		}
93
-		else
92
+		} else
94 93
 		{
95 94
 			$this->status( 'removed' );
96 95
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/ProductRenameStockWarehouse.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@  discard block
 block discarded – undo
70 70
 		) {
71 71
 			$this->execute( $this->stmts['constraint'], 'db-product' );
72 72
 			$this->status( 'done' );
73
-		}
74
-		else
73
+		} else
75 74
 		{
76 75
 			$this->status( 'OK' );
77 76
 		}
@@ -84,8 +83,7 @@  discard block
 block discarded – undo
84 83
 		) {
85 84
 			$this->execute( $this->stmts['constraint2'], 'db-product' );
86 85
 			$this->status( 'done' );
87
-		}
88
-		else
86
+		} else
89 87
 		{
90 88
 			$this->status( 'OK' );
91 89
 		}
@@ -98,8 +96,7 @@  discard block
 block discarded – undo
98 96
 		) {
99 97
 			$this->execute( $this->stmts['typeid'], 'db-product' );
100 98
 			$this->status( 'done' );
101
-		}
102
-		else
99
+		} else
103 100
 		{
104 101
 			$this->status( 'OK' );
105 102
 		}
@@ -111,8 +108,7 @@  discard block
 block discarded – undo
111 108
 		{
112 109
 			$this->execute( $this->stmts['table'], 'db-product' );
113 110
 			$this->status( 'done' );
114
-		}
115
-		else
111
+		} else
116 112
 		{
117 113
 			$this->status( 'OK' );
118 114
 		}
Please login to merge, or discard this patch.
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.