Passed
Pull Request — master (#202)
by
unknown
02:33
created
src/Client/Html/Checkout/Confirm/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
 		{
80 80
 			$serviceCntl = \Aimeos\Controller\Frontend::create( $context, 'service' );
81 81
 			$orderItem = $serviceCntl->updateSync( $view->request(), $code, $orderid );
82
-		}
83
-		else
82
+		} else
84 83
 		{
85 84
 			$orderItem = $orderCntl->get( $orderid, false );
86 85
 		}
Please login to merge, or discard this patch.
src/Client/Html/Checkout/Standard/Process/Standard.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -211,27 +211,26 @@
 block discarded – undo
211 211
 			$order = $basketCntl->store();
212 212
 
213 213
 			$context->session()->set( 'aimeos/orderid', $order->getId() );
214
-		}
215
-		elseif( ( $orderid = $context->session()->get( 'aimeos/orderid' ) ) !== null )
214
+		} elseif( ( $orderid = $context->session()->get( 'aimeos/orderid' ) ) !== null )
216 215
 		{
217 216
 			$refs = $context->config()->get( 'mshop/order/manager/subdomains', [] );
218 217
 			$order = $orderCntl->uses( $refs )->get( $orderid, false );
219
-		}
220
-		else
218
+		} else
221 219
 		{
222 220
 			return;
223 221
 		}
224 222
 
225
-		if( ( $form = $this->processPayment( $order ) ) === null ) // no payment service available
223
+		if( ( $form = $this->processPayment( $order ) ) === null ) {
224
+			// no payment service available
226 225
 		{
227 226
 			$services = $order->getService( \Aimeos\MShop\Order\Item\Service\Base::TYPE_PAYMENT );
227
+		}
228 228
 			$args = ( $service = reset( $services ) ) ? ['code' => $service->getCode()] : [];
229 229
 
230 230
 			$orderCntl->save( $order->setStatusPayment( \Aimeos\MShop\Order\Item\Base::PAY_AUTHORIZED ) );
231 231
 			$view->standardUrlNext = $this->getUrlConfirm( $view, $args, ['absoluteUri' => true] );
232 232
 			$view->standardMethod = 'POST';
233
-		}
234
-		else
233
+		} else
235 234
 		{
236 235
 			$this->addFormData( $view, $form );
237 236
 		}
Please login to merge, or discard this patch.
src/Client/Html/Basket/Standard/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -213,8 +213,7 @@
 block discarded – undo
213 213
 				(string) $view->param( 'b_stocktype', 'default' ),
214 214
 				$view->param( 'b_siteid' )
215 215
 			);
216
-		}
217
-		else
216
+		} else
218 217
 		{
219 218
 			foreach( (array) $view->param( 'b_prod', [] ) as $values )
220 219
 			{
Please login to merge, or discard this patch.
src/Client/Html/Checkout/Standard/Payment/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,8 +149,7 @@
 block discarded – undo
149 149
 						$value = $oservice->getAttribute( $key, 'payment' ) ?: $value;
150 150
 						$item->value = $oservice->getAttribute( $key, 'payment/hidden' ) ?: $value;
151 151
 					}
152
-				}
153
-				else
152
+				} else
154 153
 				{
155 154
 					foreach( $attr as $key => $item ) {
156 155
 						$item->value = is_array( $item->getDefault() ) ? key( $item->getDefault() ) : $item->getDefault();
Please login to merge, or discard this patch.
src/Client/Html/Checkout/Standard/Address/Billing/Standard.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -464,15 +464,16 @@  discard block
 block discarded – undo
464 464
 		$disable = $view->config( 'client/html/checkout/standard/address/billing/disable-new', false );
465 465
 		$type = \Aimeos\MShop\Order\Item\Address\Base::TYPE_PAYMENT;
466 466
 
467
-		if( ( $option = $view->param( 'ca_billingoption', 'null' ) ) === 'null' && $disable === false ) // new address
467
+		if( ( $option = $view->param( 'ca_billingoption', 'null' ) ) === 'null' && $disable === false ) {
468
+			// new address
468 469
 		{
469 470
 			$params = $view->param( 'ca_billing', [] );
471
+		}
470 472
 
471 473
 			if( ( $view->addressBillingError = $this->checkFields( $params ) ) !== [] ) {
472 474
 				return false;
473 475
 			}
474
-		}
475
-		else // existing address
476
+		} else // existing address
476 477
 		{
477 478
 			$params = $view->param( 'ca_billing_' . $option, [] ) + $view->param( 'ca_extra', [] );
478 479
 
@@ -616,8 +617,7 @@  discard block
 block discarded – undo
616 617
 					$invalid[$key] = $name;
617 618
 					unset( $params[$key] );
618 619
 				}
619
-			}
620
-			else
620
+			} else
621 621
 			{
622 622
 				unset( $params[$key] );
623 623
 			}
Please login to merge, or discard this patch.