Passed
Push — master ( 150377...c18077 )
by Aimeos
02:57
created
client/html/templates/account/subscription/lists-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,8 +122,11 @@
 block discarded – undo
122 122
 									<span class="value col-sm-6">
123 123
 										<?php if( isset( $intervals[$item->getInterval()] ) ) : ?>
124 124
 											<?= $enc->html( $intervals[$item->getInterval()]->getName(), $enc::TRUST ); ?>
125
-										<?php else : ?>
126
-											<?= $enc->html( $item->getInterval(), $enc::TRUST ); ?>
125
+										<?php else {
126
+	: ?>
127
+											<?= $enc->html( $item->getInterval(), $enc::TRUST );
128
+}
129
+?>
127 130
 										<?php endif; ?>
128 131
 									</span>
129 132
 								</div>
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/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 2 patches
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.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -108,22 +108,22 @@  discard block
 block discarded – undo
108 108
 		catch( \Aimeos\Client\Html\Exception $e )
109 109
 		{
110 110
 			$error = array( $context->getI18n()->dt( 'client', $e->getMessage() ) );
111
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
111
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
112 112
 		}
113 113
 		catch( \Aimeos\Controller\Frontend\Exception $e )
114 114
 		{
115 115
 			$error = array( $context->getI18n()->dt( 'controller/frontend', $e->getMessage() ) );
116
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
116
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
117 117
 		}
118 118
 		catch( \Aimeos\MShop\Exception $e )
119 119
 		{
120 120
 			$error = array( $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
121
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
121
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
122 122
 		}
123 123
 		catch( \Exception $e )
124 124
 		{
125 125
 			$error = array( $context->getI18n()->dt( 'client', 'A non-recoverable error occured' ) );
126
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
126
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
127 127
 			$this->logException( $e );
128 128
 		}
129 129
 
@@ -343,22 +343,22 @@  discard block
 block discarded – undo
343 343
 		catch( \Aimeos\Client\Html\Exception $e )
344 344
 		{
345 345
 			$error = array( $context->getI18n()->dt( 'client', $e->getMessage() ) );
346
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
346
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
347 347
 		}
348 348
 		catch( \Aimeos\Controller\Frontend\Exception $e )
349 349
 		{
350 350
 			$error = array( $context->getI18n()->dt( 'controller/frontend', $e->getMessage() ) );
351
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
351
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
352 352
 		}
353 353
 		catch( \Aimeos\MShop\Exception $e )
354 354
 		{
355 355
 			$error = array( $context->getI18n()->dt( 'mshop', $e->getMessage() ) );
356
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
356
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
357 357
 		}
358 358
 		catch( \Exception $e )
359 359
 		{
360 360
 			$error = array( $context->getI18n()->dt( 'client', 'A non-recoverable error occured' ) );
361
-			$view->confirmErrorList = array_merge($view->get( 'confirmErrorList', [] ), $error);
361
+			$view->confirmErrorList = array_merge( $view->get( 'confirmErrorList', [] ), $error );
362 362
 			$this->logException( $e );
363 363
 		}
364 364
 	}
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 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@
 block discarded – undo
256 256
 
257 257
 				$view->summaryErrorCodes = $errors;
258 258
 				$view->standardStepActive = 'summary';
259
-				$view->standardErrorList = array_merge($view->get( 'standardErrorList', [] ), array( $error ));
259
+				$view->standardErrorList = array_merge( $view->get( 'standardErrorList', [] ), array( $error ) );
260 260
 			}
261 261
 
262 262
 
Please login to merge, or discard this patch.
client/html/templates/common/summary/detail-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -243,9 +243,12 @@  discard block
 block discarded – undo
243 243
 						<?php if( $product->getQuantity() > 1 ) : ?>
244 244
 							<?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() - 1 ); ?>
245 245
 							<a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">−</a>
246
-						<?php else : ?>
246
+						<?php else {
247
+	: ?>
247 248
 							&nbsp;
248
-						<?php endif; ?>
249
+						<?php endif;
250
+}
251
+?>
249 252
 
250 253
 						<input class="value" type="text"
251 254
 							name="<?= $enc->attr( $this->formparam( array( 'b_prod', $position, 'quantity' ) ) ); ?>"
@@ -259,8 +262,11 @@  discard block
 block discarded – undo
259 262
 						<?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() + 1 ); ?>
260 263
 						<a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">+</a>
261 264
 
262
-					<?php else : ?>
263
-						<?= $enc->html( $product->getQuantity() ); ?>
265
+					<?php else {
266
+	: ?>
267
+						<?= $enc->html( $product->getQuantity() );
268
+}
269
+?>
264 270
 					<?php endif; ?>
265 271
 				</td>
266 272
 
Please login to merge, or discard this patch.