Passed
Push — master ( f396d8...26b050 )
by Aimeos
12:55 queued 02:39
created
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/Customer/Manager/Group/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -305,8 +305,7 @@
 block discarded – undo
305 305
 				 */
306 306
 				$path = 'mshop/customer/manager/group/insert';
307 307
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
308
-			}
309
-			else
308
+			} else
310 309
 			{
311 310
 				/** mshop/customer/manager/group/update/mysql
312 311
 				 * Updates an existing customer group record in the database
Please login to merge, or discard this patch.
src/MShop/Common/Manager/Base.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -305,8 +305,7 @@  discard block
 block discarded – undo
305 305
 			foreach( $columns as $name ) {
306 306
 				$names .= '"' . $name . '", '; $values .= '?, ';
307 307
 			}
308
-		}
309
-		else
308
+		} else
310 309
 		{
311 310
 			foreach( $columns as $name ) {
312 311
 				$names .= '"' . $name . '" = ?, ';
@@ -691,11 +690,9 @@  discard block
 block discarded – undo
691 690
 
692 691
 		if( isset( $attributes[$prefix] ) && $attributes[$prefix] instanceof $iface ) {
693 692
 			return $attributes[$prefix]->getInternalDeps();
694
-		}
695
-		elseif( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) {
693
+		} elseif( isset( $attributes[$name] ) && $attributes[$name] instanceof $iface ) {
696 694
 			return $attributes[$name]->getInternalDeps();
697
-		}
698
-		else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) {
695
+		} else if( isset( $attributes['id'] ) && $attributes['id'] instanceof $iface ) {
699 696
 			return $attributes['id']->getInternalDeps();
700 697
 		}
701 698
 
Please login to merge, or discard this patch.
src/MShop/Common/Manager/ListsRef/Traits.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -178,8 +178,7 @@  discard block
 block discarded – undo
178 178
 						$search->compare( '==', $prefix . '.lists.domain', $key ),
179 179
 						$search->compare( '==', $prefix . '.lists.type', $domain ),
180 180
 					] );
181
-				}
182
-				else
181
+				} else
183 182
 				{
184 183
 					$list[] = $search->compare( '==', $prefix . '.lists.domain', $domain );
185 184
 				}
@@ -187,8 +186,7 @@  discard block
 block discarded – undo
187 186
 
188 187
 			$expr[] = $search->or( $list );
189 188
 			$search->setConditions( $search->and( $expr ) );
190
-		}
191
-		else
189
+		} else
192 190
 		{
193 191
 			$search->setConditions( $search->compare( '==', $prefix . '.lists.parentid', $ids ) );
194 192
 		}
Please login to merge, or discard this patch.