Passed
Push — master ( 50e989...69e622 )
by Aimeos
05:21
created
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/src/MShop/Order/Item/Base/Base.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -171,8 +171,7 @@  discard block
 block discarded – undo
171 171
 			$quantity = $item->getQuantity();
172 172
 			$item = $this->products[$pos];
173 173
 			$item->setQuantity( $item->getQuantity() + $quantity );
174
-		}
175
-		else if( $position !== null )
174
+		} else if( $position !== null )
176 175
 		{
177 176
 			if( isset( $this->products[$position] ) )
178 177
 			{
@@ -189,13 +188,11 @@  discard block
 block discarded – undo
189 188
 
190 189
 				$products[$position] = $item;
191 190
 				$this->products = $products;
192
-			}
193
-			else
191
+			} else
194 192
 			{
195 193
 				$this->products[$position] = $item;
196 194
 			}
197
-		}
198
-		else
195
+		} else
199 196
 		{
200 197
 			$this->products[] = $item;
201 198
 		}
@@ -225,8 +222,7 @@  discard block
 block discarded – undo
225 222
 		{
226 223
 			$this->products[$pos] = $item;
227 224
 			$this->setModified();
228
-		}
229
-		else
225
+		} else
230 226
 		{
231 227
 			$this->products[$pos] = $item;
232 228
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Plugin/Provider/Order/Coupon.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
 			{
82 82
 				$couponProvider = $couponManager->getProvider( $couponItem, $code );
83 83
 				$couponProvider->updateCoupon( $order );
84
-			}
85
-			else
84
+			} else
86 85
 			{
87 86
 				$notAvailable[$code] = 'coupon.gone';
88 87
 			}
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/mwlib/tests/MW/Process/Decorator/CheckTest.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,9 @@  discard block
 block discarded – undo
45 45
 
46 46
 	public function testStart()
47 47
 	{
48
-		$fcn = function() {};
48
+		$fcn = function()
49
+		{
50
+};
49 51
 
50 52
 		$this->stub->expects( $this->once() )->method( 'isAvailable' )
51 53
 			->will( $this->returnValue( true ) );
@@ -58,7 +60,9 @@  discard block
 block discarded – undo
58 60
 
59 61
 	public function testStartNotAvailable()
60 62
 	{
61
-		$fcn = function() {};
63
+		$fcn = function()
64
+		{
65
+};
62 66
 
63 67
 		$this->stub->expects( $this->once() )->method( 'isAvailable' )
64 68
 			->will( $this->returnValue( false ) );
@@ -71,7 +75,9 @@  discard block
 block discarded – undo
71 75
 
72 76
 	public function testWait()
73 77
 	{
74
-		$fcn = function() {};
78
+		$fcn = function()
79
+		{
80
+};
75 81
 
76 82
 		$this->stub->expects( $this->once() )->method( 'isAvailable' )
77 83
 			->will( $this->returnValue( true ) );
@@ -84,7 +90,9 @@  discard block
 block discarded – undo
84 90
 
85 91
 	public function testWaitNotAvailable()
86 92
 	{
87
-		$fcn = function() {};
93
+		$fcn = function()
94
+		{
95
+};
88 96
 
89 97
 		$this->stub->expects( $this->once() )->method( 'isAvailable' )
90 98
 			->will( $this->returnValue( false ) );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Context/Item/Iface.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	 * Returns the message queue manager object.
163 163
 	 *
164 164
 	 * @return \Aimeos\MW\MQueue\Manager\Iface Message queue manager object
165
-	*/
165
+	 */
166 166
 	public function getMessageQueueManager();
167 167
 
168 168
 	/**
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	 * Returns the process object.
187 187
 	 *
188 188
 	 * @return \Aimeos\MW\Process\Iface Process object
189
-	*/
189
+	 */
190 190
 	public function getProcess();
191 191
 
192 192
 	/**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * Returns the session object.
202 202
 	 *
203 203
 	 * @return \Aimeos\MW\Session\Iface Session object
204
-	*/
204
+	 */
205 205
 	public function getSession();
206 206
 
207 207
 	/**
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Context/Item/Standard.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 	 * Returns the message queue manager object.
376 376
 	 *
377 377
 	 * @return \Aimeos\MW\MQueue\Manager\Iface Message queue manager object
378
-	*/
378
+	 */
379 379
 	public function getMessageQueueManager()
380 380
 	{
381 381
 		if( !isset( $this->mqueue ) ) {
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 	 * @param string $resource Resource name, e.g. "mq-email"
393 393
 	 * @apram string $queue Message queue name, e.g. "order/email/payment"
394 394
 	 * @return \Aimeos\MW\Queue\Manager\Iface Message queue object
395
-	*/
395
+	 */
396 396
 	public function getMessageQueue( $resource, $queue )
397 397
 	{
398 398
 		if( !isset( $this->mqueue ) ) {
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 	 * Returns the process object.
422 422
 	 *
423 423
 	 * @return \Aimeos\MW\Process\Iface Process object
424
-	*/
424
+	 */
425 425
 	public function getProcess()
426 426
 	{
427 427
 		if( !isset( $this->process ) ) {
Please login to merge, or discard this patch.