Passed
Push — master ( e7141a...ab4b6a )
by Aimeos
04:16
created
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.
src/MShop/Order/Manager/Base/Coupon/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -505,8 +505,7 @@
 block discarded – undo
505 505
 				 */
506 506
 				$path = 'mshop/order/manager/base/coupon/insert';
507 507
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
508
-			}
509
-			else
508
+			} else
510 509
 			{
511 510
 				/** mshop/order/manager/base/coupon/update/mysql
512 511
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.
src/MShop/Order/Manager/Base/Product/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -719,8 +719,7 @@
 block discarded – undo
719 719
 				 */
720 720
 				$path = 'mshop/order/manager/base/product/insert';
721 721
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
722
-			}
723
-			else
722
+			} else
724 723
 			{
725 724
 				/** mshop/order/manager/base/product/update/mysql
726 725
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.
src/MShop/Order/Manager/Base/Product/Attribute/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -533,8 +533,7 @@
 block discarded – undo
533 533
 				 */
534 534
 				$path = 'mshop/order/manager/base/product/attribute/insert';
535 535
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
536
-			}
537
-			else
536
+			} else
538 537
 			{
539 538
 				/** mshop/order/manager/base/product/attribute/update/mysql
540 539
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.
src/MShop/Order/Manager/Base/Address/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -665,8 +665,7 @@
 block discarded – undo
665 665
 				 */
666 666
 				$path = 'mshop/order/manager/base/address/insert';
667 667
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
668
-			}
669
-			else
668
+			} else
670 669
 			{
671 670
 				/** mshop/order/manager/base/address/update/mysql
672 671
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.
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/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.