@@ -9,8 +9,7 @@ discard block |
||
9 | 9 | return ( $key == $code ? 'selected="selected"' : '' ); |
10 | 10 | }; |
11 | 11 | |
12 | -$sortItems = function( array $items ) |
|
13 | -{ |
|
12 | +$sortItems = function( array $items ) { |
|
14 | 13 | krsort( $items ); |
15 | 14 | return $items; |
16 | 15 | }; |
@@ -340,8 +339,11 @@ discard block |
||
340 | 339 | <div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div> |
341 | 340 | </div> |
342 | 341 | <?php endforeach; ?> |
343 | - <?php else : ?> |
|
344 | - <?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?> |
|
342 | + <?php else { |
|
343 | + : ?> |
|
344 | + <?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); |
|
345 | +} |
|
346 | +?> |
|
345 | 347 | <?php endif; ?> |
346 | 348 | </div> |
347 | 349 | |
@@ -768,8 +770,11 @@ discard block |
||
768 | 770 | <div class="col-6 name"> |
769 | 771 | <?php if( $basket->getPrice()->getTaxFlag() ) : ?> |
770 | 772 | <?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?> |
771 | - <?php else : ?> |
|
772 | - <?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?> |
|
773 | + <?php else { |
|
774 | + : ?> |
|
775 | + <?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); |
|
776 | +} |
|
777 | +?> |
|
773 | 778 | <?php endif; ?> |
774 | 779 | </div> |
775 | 780 | <div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div> |
@@ -56,16 +56,14 @@ |
||
56 | 56 | $controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' ); |
57 | 57 | $action = $this->config( 'admin/jqadm/url/get/action', 'get' ); |
58 | 58 | $config = $this->config( 'admin/jqadm/url/get/config', [] ); |
59 | - } |
|
60 | - else |
|
59 | + } else |
|
61 | 60 | { |
62 | 61 | $target = $this->config( 'admin/jqadm/url/create/target' ); |
63 | 62 | $controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' ); |
64 | 63 | $action = $this->config( 'admin/jqadm/url/create/action', 'create' ); |
65 | 64 | $config = $this->config( 'admin/jqadm/url/create/config', [] ); |
66 | 65 | } |
67 | -} |
|
68 | -else |
|
66 | +} else |
|
69 | 67 | { |
70 | 68 | $target = $this->config( 'admin/jqadm/url/search/target' ); |
71 | 69 | $controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); |