Passed
Push — master ( c3d715...3b1d61 )
by Aimeos
03:37
created
client/html/src/Client/Html/Basket/Standard/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -401,8 +401,7 @@  discard block
 block discarded – undo
401 401
 			$controller = $view->config( 'client/html/catalog/detail/url/controller', 'catalog' );
402 402
 			$action = $view->config( 'client/html/catalog/detail/url/action', 'detail' );
403 403
 			$config = $view->config( 'client/html/catalog/detail/url/config', [] );
404
-		}
405
-		else
404
+		} else
406 405
 		{
407 406
 			$params = $context->getSession()->get( 'aimeos/catalog/lists/params/last/' . $site, [] );
408 407
 
@@ -488,8 +487,7 @@  discard block
 block discarded – undo
488 487
 				(string) $view->param( 'b_supplier', '' ),
489 488
 				$view->param( 'b_siteid' )
490 489
 			);
491
-		}
492
-		else
490
+		} else
493 491
 		{
494 492
 			$list = [];
495 493
 			$entries = (array) $view->param( 'b_prod', [] );
Please login to merge, or discard this patch.
client/html/templates/account/subscription/detail-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,11 @@
 block discarded – undo
66 66
 						$this->config( 'client/html/account/subscription/summary/address', 'common/summary/address-standard' ),
67 67
 						array( 'addresses' => $this->summaryBasket->getAddress( 'delivery' ), 'type' => 'delivery' )
68 68
 					); ?>
69
-				<?php else : ?>
70
-					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?>
69
+				<?php else {
70
+	: ?>
71
+					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST );
72
+}
73
+?>
71 74
 				<?php endif; ?>
72 75
 			</div>
73 76
 		</div>
Please login to merge, or discard this patch.
client/html/templates/account/history/order-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,11 @@
 block discarded – undo
73 73
 						$this->config( 'client/html/account/history/summary/address', 'common/summary/address-standard' ),
74 74
 						array( 'addresses' => $this->summaryBasket->getAddress( 'delivery' ), 'type' => 'delivery' )
75 75
 					); ?>
76
-				<?php else : ?>
77
-					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?>
76
+				<?php else {
77
+	: ?>
78
+					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST );
79
+}
80
+?>
78 81
 				<?php endif; ?>
79 82
 			</div>
80 83
 		</div>
Please login to merge, or discard this patch.
client/html/templates/catalog/stage/body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,9 +59,12 @@
 block discarded – undo
59 59
 							</a>
60 60
 						</li>
61 61
 					<?php endforeach; ?>
62
-				<?php else : ?>
62
+				<?php else {
63
+	: ?>
63 64
 					<li>
64
-						<a href="<?= $enc->attr( $this->url( $listTarget, $listController, $listAction, $this->get( 'stageParams', [] ), [], $listConfig ) ); ?>">
65
+						<a href="<?= $enc->attr( $this->url( $listTarget, $listController, $listAction, $this->get( 'stageParams', [] ), [], $listConfig ) );
66
+}
67
+?>">
65 68
 							<?= $enc->html( $this->translate( 'client', 'Your search result' ), $enc::TRUST ); ?>
66 69
 						</a>
67 70
 					</li>
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -322,8 +322,7 @@
 block discarded – undo
322 322
 			{
323 323
 				$serviceCntl = \Aimeos\Controller\Frontend::create( $context, 'service' );
324 324
 				$orderItem = $serviceCntl->updateSync( $view->request(), $code, $orderid );
325
-			}
326
-			else
325
+			} else
327 326
 			{
328 327
 				$orderCntl = \Aimeos\Controller\Frontend::create( $context, 'order' );
329 328
 				$orderItem = $orderCntl->get( $orderid, false );
Please login to merge, or discard this patch.
client/html/templates/checkout/confirm/order-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,11 @@
 block discarded – undo
55 55
 						$this->config( 'client/html/checkout/confirm/summary/address', 'common/summary/address-standard' ),
56 56
 						['addresses' => $addresses, 'type' => 'delivery']
57 57
 					); ?>
58
-				<?php else : ?>
59
-					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?>
58
+				<?php else {
59
+	: ?>
60
+					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST );
61
+}
62
+?>
60 63
 				<?php endif; ?>
61 64
 			</div>
62 65
 		</div>
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( $view->param( 'cp_payment', null ) !== null )
271
+			} elseif( $view->param( 'cp_payment', null ) !== null )
273 272
 			{
274 273
 				$parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_ALL;
275 274
 				$orderItem = $orderCntl->get( $context->getSession()->get( 'aimeos/orderid' ), false );
276 275
 				$basket = $basketCntl->load( $orderItem->getBaseId(), $parts, false );
277
-			}
278
-			else
276
+			} else
279 277
 			{
280 278
 				return;
281 279
 			}
@@ -285,8 +283,7 @@  discard block
 block discarded – undo
285 283
 				$orderCntl->save( $orderItem->setPaymentStatus( \Aimeos\MShop\Order\Item\Base::PAY_AUTHORIZED ) );
286 284
 				$view->standardUrlNext = $this->getUrlConfirm( $view, [], [] );
287 285
 				$view->standardMethod = 'POST';
288
-			}
289
-			else // no payment service available
286
+			} else // no payment service available
290 287
 			{
291 288
 				$view = $this->addFormData( $view, $form );
292 289
 			}
Please login to merge, or discard this patch.
client/html/templates/checkout/standard/summary-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,11 @@
 block discarded – undo
83 83
 						$this->config( 'client/html/checkout/standard/summary/address', 'common/summary/address-standard' ),
84 84
 						['addresses' => $addresses, 'type' => 'delivery']
85 85
 					); ?>
86
-				<?php else : ?>
87
-					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?>
86
+				<?php else {
87
+	: ?>
88
+					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST );
89
+}
90
+?>
88 91
 				<?php endif; ?>
89 92
 			</div>
90 93
 		</div>
Please login to merge, or discard this patch.
client/html/templates/checkout/standard/delivery-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,14 +41,17 @@
 block discarded – undo
41 41
 									$this->translate( 'currency', $price->getCurrencyId() )
42 42
 								) ); ?>
43 43
 							</span>
44
-						<?php else : ?>
44
+						<?php else {
45
+	: ?>
45 46
 							<span class="price-value">
46 47
 								<?= $enc->html( sprintf(
47 48
 									/// Price format with price value (%1$s) and currency (%2$s)
48 49
 									$this->translate( 'client/code', 'price:default', null, 0, false ) ?: $this->translate( 'client', '%1$s %2$s' ),
49 50
 									$this->number( $price->getCosts() > 0 ? $price->getCosts() : 0, $price->getPrecision() ),
50 51
 									$this->translate( 'currency', $price->getCurrencyId() )
51
-								) ); ?>
52
+								) );
53
+}
54
+?>
52 55
 							</span>
53 56
 						<?php endif; ?>
54 57
 
Please login to merge, or discard this patch.