@@ -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 | }; |
@@ -325,8 +324,11 @@ discard block |
||
325 | 324 | <div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ); ?></span></div> |
326 | 325 | </div> |
327 | 326 | <?php endforeach; ?> |
328 | - <?php else : ?> |
|
329 | - <?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); ?> |
|
327 | + <?php else { |
|
328 | + : ?> |
|
329 | + <?= $enc->html( $this->translate( 'admin', 'No voucher' ) ); |
|
330 | +} |
|
331 | +?> |
|
330 | 332 | <?php endif; ?> |
331 | 333 | </div> |
332 | 334 | |
@@ -753,8 +755,11 @@ discard block |
||
753 | 755 | <div class="col-6 name"> |
754 | 756 | <?php if( $basket->getPrice()->getTaxFlag() ) : ?> |
755 | 757 | <?= $enc->html( $this->translate( 'admin', 'Incl. tax' ) ); ?> |
756 | - <?php else : ?> |
|
757 | - <?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); ?> |
|
758 | + <?php else { |
|
759 | + : ?> |
|
760 | + <?= $enc->html( $this->translate( 'admin', 'Excl. tax' ) ); |
|
761 | +} |
|
762 | +?> |
|
758 | 763 | <?php endif; ?> |
759 | 764 | </div> |
760 | 765 | <div class="col-6 value"><?= $enc->html( sprintf( $priceFormat, $this->number( $basket->getPrice()->getTaxValue() ), $currency ) ); ?></div> |
@@ -52,8 +52,11 @@ |
||
52 | 52 | </option> |
53 | 53 | <?php endforeach; ?> |
54 | 54 | </select> |
55 | - <?php else : ?> |
|
56 | - <input class="form-control" type="<?= $enc->attr( $type ); ?>" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
55 | + <?php else { |
|
56 | + : ?> |
|
57 | + <input class="form-control" type="<?= $enc->attr( $type ); |
|
58 | +} |
|
59 | +?>" tabindex="<?= $this->get( 'tabindex' ); ?>" |
|
57 | 60 | name="<?= $enc->attr( $this->formparam( array_merge( $group, ['filter', 'val', $idx] ) ) ); ?>" |
58 | 61 | value="<?= $enc->attr( $this->value( $filter, 'val/' . $idx ) ); ?>" /> |
59 | 62 | <?php endif; ?> |