Passed
Push — master ( aef34e...2e7918 )
by Aimeos
03:18
created
client/html/templates/common/partials/attribute.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,8 @@  discard block
 block discarded – undo
155 155
 
156 156
 					</ul>
157 157
 
158
-				<?php else : ?>
158
+				<?php else {
159
+	: ?>
159 160
 
160 161
 					<input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) ) ?>">
161 162
 					<select id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $code ) ?>" class="form-control select-list"
@@ -205,7 +206,9 @@  discard block
 block discarded – undo
205 206
 							value="<?= $enc->attr( $price->getValue() ) ?>"
206 207
 						<?php endif ?>
207 208
 					>
208
-				<?php break; case 'date': ?>
209
+				<?php break;
210
+}
211
+case 'date': ?>
209 212
 					<input id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $key ) ?>" class="form-control" type="date" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>">
210 213
 				<?php break; default: ?>
211 214
 					<input id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $key ) ?>" class="form-control" type="text" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>">
Please login to merge, or discard this patch.
client/html/templates/checkout/standard/process-body.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/templates/catalog/stock/body.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,8 +95,7 @@
 block discarded – undo
95 95
 				$textStock[$level],
96 96
 				date_create( $date )->format( $dateFormat )
97 97
 			);
98
-		}
99
-		else
98
+		} else
100 99
 		{
101 100
 			$text = sprintf( $textStockIn,
102 101
 				$typeText[$stockType],
Please login to merge, or discard this patch.
client/html/src/Client/Html/Common/Decorator/Exceptions.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,9 +69,12 @@
 block discarded – undo
69 69
 	 */
70 70
 	public function header( string $uid = '' ) : ?string
71 71
 	{
72
-		try {
72
+		try
73
+		{
73 74
 			return $this->client()->header( $uid );
74
-		} catch( \Exception $e ) {
75
+		}
76
+		catch( \Exception $e )
77
+		{
75 78
 			$this->logException( $e );
76 79
 		}
77 80
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Basket/Standard/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
 				(string) $view->param( 'b_supplier', '' ),
188 188
 				$view->param( 'b_siteid' )
189 189
 			);
190
-		}
191
-		else
190
+		} else
192 191
 		{
193 192
 			foreach( (array) $view->param( 'b_prod', [] ) as $values )
194 193
 			{
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Filter/Attribute/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -320,13 +320,11 @@
 block discarded – undo
320 320
 			{
321 321
 				$item = $item->set( 'checked', true );
322 322
 				unset( $attrparams['f_attrid'][$key] );
323
-			}
324
-			elseif( ( $key = array_search( $id, $optIds ) ) !== false )
323
+			} elseif( ( $key = array_search( $id, $optIds ) ) !== false )
325 324
 			{
326 325
 				$item = $item->set( 'checked', true );
327 326
 				unset( $attrparams['f_optid'][$key] );
328
-			}
329
-			elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false )
327
+			} elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false )
330 328
 			{
331 329
 				$item = $item->set( 'checked', true );
332 330
 				unset( $attrparams['f_oneid'][$key] );
Please login to merge, or discard this patch.
client/html/templates/catalog/filter/attribute/body.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,10 @@
 block discarded – undo
58 58
 									<?php $current = $params; if( is_array( $current['f_optid'] ) ) { unset( $current['f_optid'][$key] ); } ?>
59 59
 								<?php elseif( isset( $oneIds[$attrType] ) && ( $key = array_search( $id, (array) $oneIds[$attrType] ) ) !== false ) : ?>
60 60
 									<?php $current = $params; if( is_array( $current['f_oneid'][$attrType] ) ) { unset( $current['f_oneid'][$attrType][$key] ); } ?>
61
-								<?php else : continue; ?>
61
+								<?php else {
62
+	: continue;
63
+}
64
+?>
62 65
 								<?php endif; ?>
63 66
 
64 67
 								<a class="minibutton close" href="<?= $enc->attr( $this->link( $linkKey, $attribute->get( 'params', [] ) ) ); ?>">
Please login to merge, or discard this patch.
controller/jobs/templates/order/email/voucher/text.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,14 @@
 block discarded – undo
22 22
 <?php foreach( $this->voucher as $code ) : ?>
23 23
 - <?= $code ?>
24 24
 <?php endforeach ?>
25
-<?php else : ?>
25
+<?php else {
26
+	: ?>
26 27
 <?= wordwrap( strip_tags( $this->translate( 'client', 'Your voucher: ' ) . $this->voucher ) ) ?>
27 28
 <?php endif ?>
28 29
 
29
-<?php $price = $this->orderProductItem->getPrice(); $priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?>
30
+<?php $price = $this->orderProductItem->getPrice();
31
+}
32
+$priceCurrency = $this->translate( 'currency', $price->getCurrencyId() ) ?>
30 33
 <?php $value = sprintf( $priceFormat, $this->number( $price->getValue() + $price->getRebate(), $price->getPrecision() ), $priceCurrency ) ?>
31 34
 <?= wordwrap( strip_tags( sprintf( $this->translate( 'client', 'The value of your voucher is %1$s', 'The value of your vouchers are %1$s', count( (array) $this->voucher ) ), $value ) ) ) ?>
32 35
 
Please login to merge, or discard this patch.
controller/jobs/templates/order/email/payment/pdf.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 $this->pdf->setFont( 'dejavusans', '', 10 );
20 20
 
21 21
 $vmargin = [
22
-	'h1' => [ // HTML tag
22
+	'h1' => [// HTML tag
23 23
 		0 => ['h' => 1.5, 'n' => 0], // space before = h * n
24 24
 		1 => ['h' => 1.5, 'n' => 3] // space after = h * n
25 25
 	],
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
 $data = [
93 93
 	'BCD', // required
94 94
 	'002', // Version 2 (required, 1=UTF-8, 2=ISO 8859-1, 3=ISO 8859-2, 4=ISO 8859-4, 5=ISO 8859-5, 6=ISO 8859-7, 7=ISO 8859-10, 8=ISO 8859-15)
95
-	1,     // UTF-8 (required)
95
+	1, // UTF-8 (required)
96 96
 	'SCT', // SEPA Credit Transfer (required)
97
-	'',    // BIC (optional)
98
-	'',    // Name of recipient (required, name of your company)
99
-	'',    // IBAN (required)
100
-	$this->summaryBasket->getPrice()->getCurrencyId() . $total,    // Currency and value (required)
101
-	'',    // Purpose (optional, 4 char code, https://wiki.windata.de/index.php?title=Purpose-SEPA-Codes)
102
-	'',    // ISO 11649 RF Creditor Reference (optional, 35 characters structured code)
97
+	'', // BIC (optional)
98
+	'', // Name of recipient (required, name of your company)
99
+	'', // IBAN (required)
100
+	$this->summaryBasket->getPrice()->getCurrencyId() . $total, // Currency and value (required)
101
+	'', // Purpose (optional, 4 char code, https://wiki.windata.de/index.php?title=Purpose-SEPA-Codes)
102
+	'', // ISO 11649 RF Creditor Reference (optional, 35 characters structured code)
103 103
 	$this->translate( 'client', 'Order' ) . ' ' . $this->orderItem->getOrderNumber(), // Reference of order and other data (optional, max. 140 characters)
104 104
 	$this->summaryBasket->getCustomerReference(), // Notice to the customer (optional, max. 70 characters)
105 105
 ];
Please login to merge, or discard this patch.