Passed
Push — master ( df6459...c2fd3c )
by Aimeos
03:43
created
client/html/templates/checkout/standard/process-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,8 @@  discard block
 block discarded – undo
60 60
 		<p class="order-notice">
61 61
 			<?= $enc->html( $this->translate( 'client', 'Please enter your payment details' ), $enc::TRUST ) ?>
62 62
 		</p>
63
-	<?php else : ?>
63
+	<?php else {
64
+	: ?>
64 65
 		<p class="order-notice">
65 66
 			<?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ) ?>
66 67
 		</p>
@@ -103,7 +104,9 @@  discard block
 block discarded – undo
103 104
 								<?php endforeach ?>
104 105
 							</select>
105 106
 
106
-						<?php break; case 'container': ?>
107
+						<?php break;
108
+}
109
+case 'container': ?>
107 110
 							<div id="process-<?= $key ?>"></div>
108 111
 
109 112
 						<?php break; case 'boolean': ?>
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Standard/Process/Standard.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -268,14 +268,12 @@  discard block
 block discarded – undo
268 268
 				$orderItem = $orderCntl->add( $basket->getId(), ['order.type' => 'web'] )->store();
269 269
 
270 270
 				$context->getSession()->set( 'aimeos/orderid', $orderItem->getId() );
271
-			}
272
-			elseif( ( $orderid = $context->getSession()->get( 'aimeos/orderid' ) ) !== null )
271
+			} elseif( ( $orderid = $context->getSession()->get( 'aimeos/orderid' ) ) !== null )
273 272
 			{
274 273
 				$parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_ALL;
275 274
 				$orderItem = $orderCntl->get( $orderid, false );
276 275
 				$basket = $basketCntl->load( $orderItem->getBaseId(), $parts, false );
277
-			}
278
-			else
276
+			} else
279 277
 			{
280 278
 				return;
281 279
 			}
@@ -288,8 +286,7 @@  discard block
 block discarded – undo
288 286
 				$orderCntl->save( $orderItem->setStatusPayment( \Aimeos\MShop\Order\Item\Base::PAY_AUTHORIZED ) );
289 287
 				$view->standardUrlNext = $this->getUrlConfirm( $view, $args, ['absoluteUri' => true] );
290 288
 				$view->standardMethod = 'POST';
291
-			}
292
-			else // no payment service available
289
+			} else // no payment service available
293 290
 			{
294 291
 				$view = $this->addFormData( $view, $form );
295 292
 			}
Please login to merge, or discard this patch.