Passed
Branch master (4f99e3)
by Aimeos
04:48
created
client/html/templates/checkout/standard/summary-body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,11 @@
 block discarded – undo
87 87
 						$this->config( 'client/html/checkout/standard/summary/address', 'common/summary/address-standard' ),
88 88
 						array( 'address' => $addresses['delivery'], 'type' => 'delivery' )
89 89
 					); ?>
90
-				<?php else : ?>
91
-					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST ); ?>
90
+				<?php else {
91
+	: ?>
92
+					<?= $enc->html( $this->translate( 'client', 'like billing address' ), $enc::TRUST );
93
+}
94
+?>
92 95
 				<?php endif; ?>
93 96
 			</div>
94 97
 		</div>
Please login to merge, or discard this patch.
client/html/templates/checkout/standard/body-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,11 @@
 block discarded – undo
64 64
 						<a href="<?= $enc->attr( $this->url( $checkoutTarget, $checkoutController, $checkoutAction, array( 'c_step' => $name ), [], $checkoutConfig ) ); ?>">
65 65
 							<?= $enc->html( $this->translate( 'client', $name ) ); ?>
66 66
 						</a>
67
-					<?php else : ?>
68
-						<?= $enc->html( $this->translate( 'client', $name ) ); ?>
67
+					<?php else {
68
+	: ?>
69
+						<?= $enc->html( $this->translate( 'client', $name ) );
70
+}
71
+?>
69 72
 					<?php endif; ?>
70 73
 				</li>
71 74
 
Please login to merge, or discard this patch.
client/html/templates/checkout/standard/address-partial-standard.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,15 +11,18 @@
 block discarded – undo
11 11
 	throw new \Aimeos\Client\Html\Exception( 'No "address" item to address partial given' );
12 12
 }
13 13
 
14
-$testfcn = function( $list, $key, $default = '' ) {
14
+$testfcn = function( $list, $key, $default = '' )
15
+{
15 16
 	return ( isset( $list[$key] ) ? $list[$key] : $default );
16 17
 };
17 18
 
18
-$selectfcn = function( $list, $key, $value ) {
19
+$selectfcn = function( $list, $key, $value )
20
+{
19 21
 	return ( isset( $list[$key] ) && $list[$key] == $value ? 'selected="selected"' : '' );
20 22
 };
21 23
 
22
-$disablefcn = function( $list, $key ) {
24
+$disablefcn = function( $list, $key )
25
+{
23 26
 	return ( !isset( $list[$key] ) ? 'disabled="disabled"' : '' );
24 27
 };
25 28
 
Please login to merge, or discard this patch.
client/html/templates/common/partials/selection-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,10 +156,13 @@
 block discarded – undo
156 156
 						<?php endforeach; ?>
157 157
 					</ul>
158 158
 
159
-				<?php else : ?>
159
+				<?php else {
160
+	: ?>
160 161
 
161 162
 					<select class="form-control select-list"
162
-						name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) ); ?>"
163
+						name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrvarid', $code ) ) );
164
+}
165
+?>"
163 166
 						data-index="<?= $index++; ?>" data-type="<?= $enc->attr( $code ); ?>" >
164 167
 
165 168
 						<?php if( $preselect === false ) : ?>
Please login to merge, or discard this patch.
client/html/templates/common/partials/attribute-standard.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -132,8 +132,11 @@  discard block
 block discarded – undo
132 132
 											$this->translate( 'currency', $priceItem->getCurrencyId() ),
133 133
 											( $value < 0 ? '−' : '+' )
134 134
 										), $enc::TRUST ); ?>
135
-									<?php else : ?>
136
-										<?= $enc->html( $attribute->getName(), $enc::TRUST ); ?>
135
+									<?php else {
136
+	: ?>
137
+										<?= $enc->html( $attribute->getName(), $enc::TRUST );
138
+}
139
+?>
137 140
 									<?php endif; ?>
138 141
 
139 142
 								</label>
@@ -142,10 +145,13 @@  discard block
 block discarded – undo
142 145
 						<?php endforeach; ?>
143 146
 					</ul>
144 147
 
145
-				<?php else : ?>
148
+				<?php else {
149
+	: ?>
146 150
 
147 151
 					<input type="hidden" value="1"
148
-						name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'qty', '' ) ) ); ?>"
152
+						name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'qty', '' ) ) );
153
+}
154
+?>"
149 155
 					/>
150 156
 
151 157
 					<select class="form-control select-list" name="<?= $enc->attr( $this->formparam( array( 'b_prod', 0, 'attrconfid', 'id', '' ) ) ); ?>">
@@ -165,8 +171,11 @@  discard block
 block discarded – undo
165 171
 										$this->translate( 'currency', $priceItem->getCurrencyId() ),
166 172
 										( $value < 0 ? '−' : '+' )
167 173
 									), $enc::TRUST ); ?>
168
-								<?php else : ?>
169
-									<?= $enc->html( $attribute->getName(), $enc::TRUST ); ?>
174
+								<?php else {
175
+	: ?>
176
+									<?= $enc->html( $attribute->getName(), $enc::TRUST );
177
+}
178
+?>
170 179
 								<?php endif; ?>
171 180
 
172 181
 							</option>
Please login to merge, or discard this patch.
client/html/templates/common/partials/products-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,11 @@
 block discarded – undo
141 141
 								</div>
142 142
 							</noscript>
143 143
 							<div class="media-item lazy-image" data-src="<?= $mediaUrl; ?>"></div>
144
-						<?php else : ?>
145
-							<div class="media-item" data-src="<?= $mediaUrl; ?>"></div>
144
+						<?php else {
145
+	: ?>
146
+							<div class="media-item" data-src="<?= $mediaUrl;
147
+}
148
+?>"></div>
146 149
 						<?php endif; ?>
147 150
 					<?php endforeach; ?>
148 151
 				</div>
Please login to merge, or discard this patch.
client/html/templates/common/summary/detail-standard.php 1 patch
Braces   +16 added lines, -8 removed lines patch added patch discarded remove patch
@@ -128,8 +128,7 @@  discard block
 block discarded – undo
128 128
 	$priceRebate = $price->getRebate();
129 129
 	$priceTaxflag = $price->getTaxFlag();
130 130
 	$priceCurrency = $this->translate( 'currency', $price->getCurrencyId() );
131
-}
132
-else
131
+} else
133 132
 {
134 133
 	$priceValue = '0.00';
135 134
 	$priceRebate = '0.00';
@@ -285,9 +284,12 @@  discard block
 block discarded – undo
285 284
 						<?php if( $product->getQuantity() > 1 ) : ?>
286 285
 							<?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() - 1 ); ?>
287 286
 							<a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">−</a>
288
-						<?php else : ?>
287
+						<?php else {
288
+	: ?>
289 289
 							&nbsp;
290
-						<?php endif; ?>
290
+						<?php endif;
291
+}
292
+?>
291 293
 
292 294
 						<input class="value" type="text"
293 295
 							name="<?= $enc->attr( $this->formparam( array( 'b_prod', $position, 'quantity' ) ) ); ?>"
@@ -301,8 +303,11 @@  discard block
 block discarded – undo
301 303
 						<?php $basketParams = array( 'b_action' => 'edit', 'b_position' => $position, 'b_quantity' => $product->getQuantity() + 1 ); ?>
302 304
 						<a class="minibutton change" href="<?= $enc->attr( $this->url( $basketTarget, $basketController, $basketAction, $basketParams, [], $basketConfig ) ); ?>">+</a>
303 305
 
304
-					<?php else : ?>
305
-						<?= $enc->html( $product->getQuantity() ); ?>
306
+					<?php else {
307
+	: ?>
308
+						<?= $enc->html( $product->getQuantity() );
309
+}
310
+?>
306 311
 					<?php endif; ?>
307 312
 				</td>
308 313
 
@@ -399,8 +404,11 @@  discard block
 block discarded – undo
399 404
 				<tr class="tax">
400 405
 					<?php if( $priceItem->getTaxFlag() ) : ?>
401 406
 						<td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', 'Incl. %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td>
402
-					<?php else : ?>
403
-						<td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) ); ?></td>
407
+					<?php else {
408
+	: ?>
409
+						<td colspan="3"><?= $enc->html( sprintf( $this->translate( 'client', '+ %1$s%% VAT' ), $this->number( $taxRate ) ) );
410
+}
411
+?></td>
404 412
 					<?php endif; ?>
405 413
 						<td class="price"><?= $enc->html( sprintf( $priceFormat, $this->number( $taxValue ), $priceCurrency ) ); ?></td>
406 414
 					<?php if( $modify ) : ?>
Please login to merge, or discard this patch.
client/html/templates/common/summary/service-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,11 @@
 block discarded – undo
38 38
 						<span class="name">
39 39
 							<?php if( $attribute->getName() != '' ) : ?>
40 40
 								<?= $enc->html( $attribute->getName() ); ?>
41
-							<?php else : ?>
42
-								<?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ); ?>
41
+							<?php else {
42
+	: ?>
43
+								<?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) );
44
+}
45
+?>
43 46
 							<?php endif; ?>
44 47
 						</span>
45 48
 
Please login to merge, or discard this patch.
client/html/templates/email/common/text-summary-detail-partial-standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 <?php	endforeach; ?>
84 84
 <?php	foreach( $product->getAttributeItems( 'hidden' ) as $attribute ) : ?>
85 85
 <?php		if( $unhide && $attribute->getCode() === 'download' ) : ?>
86
-- <?php 		echo strip_tags( $attribute->getName()); ?>: <?= $this->url( $dlTarget, $dlController, $dlAction, array( 'dl_id' => $attribute->getId() ), [], $dlConfig ); ?>
86
+- <?php 		echo strip_tags( $attribute->getName() ); ?>: <?= $this->url( $dlTarget, $dlController, $dlAction, array( 'dl_id' => $attribute->getId() ), [], $dlConfig ); ?>
87 87
 
88 88
 <?php		endif; ?>
89 89
 <?php	endforeach; ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,12 @@
 block discarded – undo
18 18
 $dlAction = $this->config( 'client/html/account/download/url/action', 'download' );
19 19
 $dlConfig = $this->config( 'client/html/account/download/url/config', array( 'absoluteUri' => 1 ) );
20 20
 
21
-try {
21
+try
22
+{
22 23
 	$products = $this->summaryBasket->getProducts();
23
-} catch( Exception $e ) {
24
+}
25
+catch( Exception $e )
26
+{
24 27
 	$products = [];
25 28
 }
26 29
 
Please login to merge, or discard this patch.