Passed
Push — master ( 18cabd...152970 )
by Aimeos
03:01
created
client/html/templates/checkout/standard/process-body-standard.php 1 patch
Braces   +17 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 		return $name;
20 20
 	};
21
-}
22
-else
21
+} else
23 22
 {
24 23
 	$namefcn = function( $view, $key ) {
25 24
 		return $view->formparam( (array) $key );
@@ -93,9 +92,12 @@  discard block
 block discarded – undo
93 92
 		<p class="order-notice">
94 93
 			<?= $enc->html( $this->translate( 'client', 'Please enter your payment details' ), $enc::TRUST ); ?>
95 94
 		</p>
96
-	<?php else : ?>
95
+	<?php else {
96
+	: ?>
97 97
 		<p class="order-notice">
98
-			<?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ); ?>
98
+			<?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST );
99
+}
100
+?>
99 101
 		</p>
100 102
 	<?php endif; ?>
101 103
 
@@ -111,8 +113,11 @@  discard block
 block discarded – undo
111 113
 				/>
112 114
 			<?php endforeach; ?>
113 115
 
114
-		<?php else : ?>
115
-			<input type="hidden" id="process-<?= $key; ?>"
116
+		<?php else {
117
+	: ?>
118
+			<input type="hidden" id="process-<?= $key;
119
+}
120
+?>"
116 121
 				name="<?= $enc->attr( $namefcn( $this, $item->getInternalCode() ) ); ?>"
117 122
 				value="<?= $enc->attr( $item->getDefault() ); ?>"
118 123
 			/>
@@ -202,8 +207,7 @@  discard block
 block discarded – undo
202 207
 						foreach( (array) $item->getDefault() as $key2 => $value ){
203 208
 							$urlParams[] = $namefcn( $this, array( $item->getInternalCode(), $key2 ) ) . '=' . urlencode( $value );
204 209
 						}
205
-					}
206
-					else
210
+					} else
207 211
 					{
208 212
 						$urlParams[] = $namefcn( $this, $item->getInternalCode() ) . '=' . urlencode( $item->getDefault() );
209 213
 					}
@@ -217,9 +221,12 @@  discard block
 block discarded – undo
217 221
 				<?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?>
218 222
 			</a>
219 223
 
220
-		<?php else : ?>
224
+		<?php else {
225
+	: ?>
221 226
 			<button class="btn btn-primary btn-lg btn-action">
222
-				<?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?>
227
+				<?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST );
228
+}
229
+?>
223 230
 			</button>
224 231
 
225 232
 		<?php endif; ?>
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Standard/Address/Billing/Standard.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -577,15 +577,16 @@  discard block
 block discarded – undo
577 577
 		$disable = $view->config( 'client/html/checkout/standard/address/billing/disable-new', false );
578 578
 		$type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT;
579 579
 
580
-		if( ( $option = $view->param( 'ca_billingoption', 'null' ) ) === 'null' && $disable === false ) // new address
580
+		if( ( $option = $view->param( 'ca_billingoption', 'null' ) ) === 'null' && $disable === false ) {
581
+			// new address
581 582
 		{
582 583
 			$params = $view->param( 'ca_billing', [] );
584
+		}
583 585
 
584 586
 			if( ( $view->billingError = $this->checkFields( $params ) ) !== [] ) {
585 587
 				throw new \Aimeos\Client\Html\Exception( sprintf( 'At least one billing address part is missing or invalid' ) );
586 588
 			}
587
-		}
588
-		else // existing address
589
+		} else // existing address
589 590
 		{
590 591
 			$params = $view->param( 'ca_billing_' . $option, [] ) + $view->param( 'ca_extra', [] );
591 592
 
@@ -729,8 +730,7 @@  discard block
 block discarded – undo
729 730
 					$invalid[$key] = $name;
730 731
 					unset( $params[$key] );
731 732
 				}
732
-			}
733
-			else
733
+			} else
734 734
 			{
735 735
 				unset( $params[$key] );
736 736
 			}
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Standard/Address/Delivery/Standard.php 1 patch
Braces   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -471,19 +471,22 @@  discard block
 block discarded – undo
471 471
 		$disable = $view->config( 'client/html/checkout/standard/address/delivery/disable-new', false );
472 472
 		$type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_DELIVERY;
473 473
 
474
-		if( ( $option = $view->param( 'ca_deliveryoption', 'null' ) ) === 'null' && $disable === false ) // new address
474
+		if( ( $option = $view->param( 'ca_deliveryoption', 'null' ) ) === 'null' && $disable === false ) {
475
+			// new address
475 476
 		{
476 477
 			$params = $view->param( 'ca_delivery', [] );
478
+		}
477 479
 
478 480
 			if( ( $view->deliveryError = $this->checkFields( $params ) ) !== [] ) {
479 481
 				throw new \Aimeos\Client\Html\Exception( sprintf( 'At least one delivery address part is missing or invalid' ) );
480 482
 			}
481 483
 
482 484
 			$basketCtrl->addAddress( $type, $params );
483
-		}
484
-		else if( ( $option = $view->param( 'ca_deliveryoption', 'null' ) ) !== '-1' ) // existing address
485
+		} else if( ( $option = $view->param( 'ca_deliveryoption', 'null' ) ) !== '-1' ) {
486
+			// existing address
485 487
 		{
486 488
 			$params = $view->param( 'ca_delivery_' . $option, [] );
489
+		}
487 490
 
488 491
 			if( !empty( $params ) && ( $view->deliveryError = $this->checkFields( $params ) ) !== [] ) {
489 492
 				throw new \Aimeos\Client\Html\Exception( sprintf( 'At least one delivery address part is missing or invalid' ) );
@@ -498,8 +501,7 @@  discard block
 block discarded – undo
498 501
 			}
499 502
 
500 503
 			$basketCtrl->addAddress( $type, $params );
501
-		}
502
-		else
504
+		} else
503 505
 		{
504 506
 			$basketCtrl->deleteAddress( $type );
505 507
 		}
@@ -701,8 +703,7 @@  discard block
 block discarded – undo
701 703
 					$invalid[$key] = $name;
702 704
 					unset( $params[$key] );
703 705
 				}
704
-			}
705
-			else
706
+			} else
706 707
 			{
707 708
 				unset( $params[$key] );
708 709
 			}
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
@@ -71,13 +71,16 @@
 block discarded – undo
71 71
 									$currency )
72 72
 								); ?>
73 73
 							</span>
74
-						<?php else : ?>
74
+						<?php else {
75
+	: ?>
75 76
 							<span class="price-value">
76 77
 								<?= $enc->html( sprintf(
77 78
 									$priceFormat,
78 79
 									$this->number( $servicePrices[$id]->getCosts() > 0 ? $servicePrices[$id]->getCosts() : 0, $servicePrices[$id]->getPrecision() ),
79 80
 									$currency )
80
-								); ?>
81
+								);
82
+}
83
+?>
81 84
 							</span>
82 85
 						<?php endif; ?>
83 86
 
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
@@ -319,8 +319,7 @@
 block discarded – undo
319 319
 			{
320 320
 				$serviceCntl = \Aimeos\Controller\Frontend::create( $context, 'service' );
321 321
 				$orderItem = $serviceCntl->updateSync( $view->request(), $code, $orderid );
322
-			}
323
-			else
322
+			} else
324 323
 			{
325 324
 				$orderCntl = \Aimeos\Controller\Frontend::create( $context, 'order' );
326 325
 				$orderItem = $orderCntl->get( $orderid );
Please login to merge, or discard this patch.
client/html/templates/catalog/lists/pagination-standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
 	$listController = $this->config( 'client/html/catalog/tree/url/controller', 'catalog' );
15 15
 	$listAction = $this->config( 'client/html/catalog/tree/url/action', 'tree' );
16 16
 	$listConfig = $this->config( 'client/html/catalog/tree/url/config', [] );
17
-}
18
-else
17
+} else
19 18
 {
20 19
 	$listTarget = $this->config( 'client/html/catalog/lists/url/target' );
21 20
 	$listController = $this->config( 'client/html/catalog/lists/url/controller', 'catalog' );
Please login to merge, or discard this patch.
client/html/templates/catalog/lists/body-standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
 	$cntl = $this->config( 'client/html/catalog/tree/url/controller', 'catalog' );
17 17
 	$action = $this->config( 'client/html/catalog/tree/url/action', 'tree' );
18 18
 	$config = $this->config( 'client/html/catalog/tree/url/config', [] );
19
-}
20
-else
19
+} else
21 20
 {
22 21
 	$target = $this->config( 'client/html/catalog/lists/url/target' );
23 22
 	$cntl = $this->config( 'client/html/catalog/lists/url/controller', 'catalog' );
@@ -159,14 +158,17 @@  discard block
 block discarded – undo
159 158
 					$searchText,
160 159
 					$total
161 160
 				), $enc::TRUST ); ?>
162
-			<?php else : ?>
161
+			<?php else {
162
+	: ?>
163 163
 				<?= $enc->html( sprintf(
164 164
 					$this->translate(
165 165
 						'client',
166 166
 						'No articles found for <span class="searchstring">"%1$s"</span>. Please try again with a different keyword.'
167 167
 					),
168 168
 					$searchText
169
-				), $enc::TRUST ); ?>
169
+				), $enc::TRUST );
170
+}
171
+?>
170 172
 			<?php endif; ?>
171 173
 
172 174
 		</div>
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Detail/Seen/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,8 +187,7 @@
 block discarded – undo
187 187
 				$html = $lastSeen[$name];
188 188
 				unset( $lastSeen[$name] );
189 189
 				$lastSeen[$name] = $html;
190
-			}
191
-			else
190
+			} else
192 191
 			{
193 192
 				/** client/html/catalog/session/seen/standard/maxitems
194 193
 				 * Maximum number of products displayed in the "last seen" section
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Standard/Summary/Standard.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,9 @@
 block discarded – undo
304 304
 				$controller = \Aimeos\Controller\Frontend::create( $context, 'customer' );
305 305
 				$view->summaryCustomerId = $controller->find( $addr->getEmail() )->getId();
306 306
 			}
307
-			catch( \Exception $e ) {}
307
+			catch( \Exception $e )
308
+			{
309
+}
308 310
 		}
309 311
 
310 312
 		$view->summaryCostsDelivery = $this->getCostsDelivery( $basket );
Please login to merge, or discard this patch.