Passed
Push — master ( 0294bc...f4f6bf )
by Aimeos
04:57
created
src/MShop/Order/Manager/Status/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -258,8 +258,7 @@
 block discarded – undo
258 258
 				 */
259 259
 				$path = 'mshop/order/manager/status/insert';
260 260
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
261
-			}
262
-			else
261
+			} else
263 262
 			{
264 263
 				/** mshop/order/manager/status/update/mysql
265 264
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.
src/MShop/Order/Item/Base/Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
 
816 816
 			foreach( $price->getTaxrates() as $name => $taxrate )
817 817
 			{
818
-				$price = (clone $price)->setTaxRate( $taxrate );
818
+				$price = ( clone $price )->setTaxRate( $taxrate );
819 819
 
820 820
 				if( isset( $taxes[$name][$taxrate] ) ) {
821 821
 					$taxes[$name][$taxrate]->addItem( $price, $product->getQuantity() );
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
 
834 834
 				foreach( $price->getTaxrates() as $name => $taxrate )
835 835
 				{
836
-					$price = (clone $price)->setTaxRate( $taxrate );
836
+					$price = ( clone $price )->setTaxRate( $taxrate );
837 837
 
838 838
 					if( isset( $taxes[$name][$taxrate] ) ) {
839 839
 						$taxes[$name][$taxrate]->addItem( $price );
Please login to merge, or discard this patch.
src/MShop/Rule/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -378,8 +378,7 @@
 block discarded – undo
378 378
 				 */
379 379
 				$path = 'mshop/rule/manager/insert';
380 380
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
381
-			}
382
-			else
381
+			} else
383 382
 			{
384 383
 				/** mshop/rule/manager/update/mysql
385 384
 				 * Updates an existing rule record in the database
Please login to merge, or discard this patch.
src/MShop/Media/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -402,8 +402,7 @@
 block discarded – undo
402 402
 				 */
403 403
 				$path = 'mshop/media/manager/insert';
404 404
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
405
-			}
406
-			else
405
+			} else
407 406
 			{
408 407
 				/** mshop/media/manager/update/mysql
409 408
 				 * Updates an existing media record in the database
Please login to merge, or discard this patch.
src/MShop/Subscription/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -333,8 +333,7 @@
 block discarded – undo
333 333
 				 */
334 334
 				$path = 'mshop/subscription/manager/insert';
335 335
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
336
-			}
337
-			else
336
+			} else
338 337
 			{
339 338
 				/** mshop/subscription/manager/update/mysql
340 339
 				 * Updates an existing subscription record in the database
Please login to merge, or discard this patch.
src/MShop/Review/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -323,8 +323,7 @@
 block discarded – undo
323 323
 				 */
324 324
 				$path = 'mshop/review/manager/insert';
325 325
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
326
-			}
327
-			else
326
+			} else
328 327
 			{
329 328
 				/** mshop/review/manager/update/mysql
330 329
 				 * Updates an existing review record in the database
Please login to merge, or discard this patch.
src/MShop/Index/Manager/DBBase.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -306,8 +306,7 @@
 block discarded – undo
306 306
 		if( empty( $search->getSortations() ) && ( $attribute = reset( $attributes ) ) !== false )
307 307
 		{
308 308
 			$search = ( clone $search )->setSortations( [$search->sort( '+', $attribute->getCode() )] );
309
-		}
310
-		elseif( !empty( $search->getSortations() ) )
309
+		} elseif( !empty( $search->getSortations() ) )
311 310
 		{
312 311
 			$names = $search->translate( $search->getSortations(), [], $funcs );
313 312
 			$cols = $search->translate( $search->getSortations(), $translations, $funcs );
Please login to merge, or discard this patch.
src/MShop/Index/Manager/Text/SQLSrv.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
 			$sort = 'mindte_ft.RANK';
61 61
 
62 62
 			$func = $this->getFunctionRelevance();
63
-		}
64
-		else
63
+		} else
65 64
 		{
66 65
 			$search = ':site AND mindte."langid" = $1 AND CHARINDEX( $2, content )';
67 66
 			$sort = '-CHARINDEX( $2, content )';
Please login to merge, or discard this patch.
src/MShop/Supplier/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -349,8 +349,7 @@
 block discarded – undo
349 349
 				 */
350 350
 				$path = 'mshop/supplier/manager/insert';
351 351
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
352
-			}
353
-			else
352
+			} else
354 353
 			{
355 354
 				/** mshop/supplier/manager/update/mysql
356 355
 				 * Updates an existing supplier record in the database
Please login to merge, or discard this patch.