Passed
Push — master ( 617881...ccfec7 )
by Aimeos
14:27
created
admin/jqadm/templates/order/item-standard.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -337,8 +337,11 @@  discard block
 block discarded – undo
337 337
 										<div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div>
338 338
 									</div>
339 339
 								<?php endforeach; ?>
340
-							<?php else : ?>
341
-								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?>
340
+							<?php else {
341
+	: ?>
342
+								<?= $enc->html( $this->translate( 'admin', 'No voucher' ) );
343
+}
344
+?>
342 345
 							<?php endif; ?>
343 346
 						</div>
344 347
 
@@ -767,8 +770,11 @@  discard block
 block discarded – undo
767 770
 									<div class="col-6 name">
768 771
 										<?php if( $basket->getPrice()->getTaxFlag() ) : ?>
769 772
 											<?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?>
770
-										<?php else : ?>
771
-											<?= $enc->html( $this->translate( 'admin', '+ Tax' ) ); ?>
773
+										<?php else {
774
+	: ?>
775
+											<?= $enc->html( $this->translate( 'admin', '+ Tax' ) );
776
+}
777
+?>
772 778
 										<?php endif; ?>
773 779
 									</div>
774 780
 									<div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div>
Please login to merge, or discard this patch.
admin/jqadm/templates/common/page-standard.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -184,8 +184,11 @@  discard block
 block discarded – undo
184 184
 								<?php foreach( $this->pageSiteList as $siteItem ) : ?>
185 185
 									<?php if( $siteItem->getId() === $this->pageSiteTree->getId() ) : ?>
186 186
 										<?php $siteFcn( $this->pageSiteTree ); ?>
187
-									<?php else : ?>
188
-										<?php $siteFcn( $siteItem ); ?>
187
+									<?php else {
188
+	: ?>
189
+										<?php $siteFcn( $siteItem );
190
+}
191
+?>
189 192
 									<?php endif; ?>
190 193
 								<?php endforeach; ?>
191 194
 							</ul>
@@ -218,9 +221,12 @@  discard block
 block discarded – undo
218 221
 							</li>
219 222
 
220 223
 						<?php endif; ?>
221
-					<?php else : ?>
224
+					<?php else {
225
+	: ?>
222 226
 						<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $navitem . '/groups', [] ) ) ) : ?>
223
-							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
227
+							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' );
228
+}
229
+?>
224 230
 
225 231
 							<li class="<?= $enc->attr( $navitem ); ?> <?= $this->param( 'resource', $navfirst ) === $navitem ? 'active' : '' ?>">
226 232
 								<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
@@ -268,9 +274,12 @@  discard block
 block discarded – undo
268 274
 							</li>
269 275
 
270 276
 						<?php endif; ?>
271
-					<?php else : ?>
277
+					<?php else {
278
+	: ?>
272 279
 						<?php if( $this->access( $this->config( 'admin/jqadm/resource/' . $navitem . '/groups', [] ) ) ) : ?>
273
-							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' ); ?>
280
+							<?php $key = $this->config( 'admin/jqadm/resource/' . $navitem . '/key' );
281
+}
282
+?>
274 283
 							<li class="<?= $enc->attr( $navitem ); ?> <?= $this->param( 'resource', $navfirst ) === $navitem ? 'active' : '' ?>">
275 284
 								<a href="<?= $enc->attr( $this->url( $searchTarget, $cntl, $action, array( 'resource' => $navitem ) + $params, [], $config ) ); ?>"
276 285
 									title="<?= $enc->attr( sprintf( $title, $this->translate( 'admin', $navitem ), $key ) ); ?>"
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-order-standard.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2021
6 6
  */
7 7
 
8
-$price = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	if( isset( $orders[$item->getBaseId()] ) )
11 10
 	{
12 11
 		$price = $orders[$item->getBaseId()]->getPrice();
@@ -15,8 +14,7 @@  discard block
 block discarded – undo
15 14
 };
16 15
 
17 16
 
18
-$name = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
19
-{
17
+$name = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
20 18
 	if( isset( $orders[$item->getBaseId()] ) )
21 19
 	{
22 20
 		$addresses = $orders[$item->getBaseId()]->getAddresses();
@@ -36,8 +34,7 @@  discard block
 block discarded – undo
36 34
 };
37 35
 
38 36
 
39
-$payment = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
40
-{
37
+$payment = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
41 38
 	if( isset( $orders[$item->getBaseId()] ) )
42 39
 	{
43 40
 		$services = $orders[$item->getBaseId()]->getServices();
@@ -49,8 +46,7 @@  discard block
 block discarded – undo
49 46
 };
50 47
 
51 48
 
52
-$status = function( $list, $key )
53
-{
49
+$status = function( $list, $key ) {
54 50
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
55 51
 };
56 52
 
Please login to merge, or discard this patch.
admin/jqadm/templates/dashboard/item-order-latest-standard.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2016-2021
6 6
  */
7 7
 
8
-$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	if( $order = $item->getBaseItem() )
11 10
 	{
12 11
 		$price = 0;
@@ -23,8 +22,7 @@  discard block
 block discarded – undo
23 22
 };
24 23
 
25 24
 
26
-$name = function( \Aimeos\MShop\Order\Item\Iface $item )
27
-{
25
+$name = function( \Aimeos\MShop\Order\Item\Iface $item ) {
28 26
 	if( $order = $item->getBaseItem() )
29 27
 	{
30 28
 		$type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT;
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
 };
43 41
 
44 42
 
45
-$payment = function( \Aimeos\MShop\Order\Item\Iface $item )
46
-{
43
+$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) {
47 44
 	if( $order = $item->getBaseItem() )
48 45
 	{
49 46
 		$type = \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT;
@@ -59,8 +56,7 @@  discard block
 block discarded – undo
59 56
 };
60 57
 
61 58
 
62
-$status = function( array $list, $key )
63
-{
59
+$status = function( array $list, $key ) {
64 60
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
65 61
 };
66 62
 
Please login to merge, or discard this patch.