@@ -5,8 +5,7 @@ discard block |
||
| 5 | 5 | * @copyright Aimeos (aimeos.org), 2016-2020 |
| 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 = $order->getPrice(); |
@@ -15,8 +14,7 @@ discard block |
||
| 15 | 14 | }; |
| 16 | 15 | |
| 17 | 16 | |
| 18 | -$name = function( \Aimeos\MShop\Order\Item\Iface $item ) |
|
| 19 | -{ |
|
| 17 | +$name = function( \Aimeos\MShop\Order\Item\Iface $item ) { |
|
| 20 | 18 | if( $order = $item->getBaseItem() ) |
| 21 | 19 | { |
| 22 | 20 | $type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT; |
@@ -34,8 +32,7 @@ discard block |
||
| 34 | 32 | }; |
| 35 | 33 | |
| 36 | 34 | |
| 37 | -$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) |
|
| 38 | -{ |
|
| 35 | +$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) { |
|
| 39 | 36 | if( $order = $item->getBaseItem() ) |
| 40 | 37 | { |
| 41 | 38 | $type = \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT; |
@@ -51,8 +48,7 @@ discard block |
||
| 51 | 48 | }; |
| 52 | 49 | |
| 53 | 50 | |
| 54 | -$status = function( array $list, $key ) |
|
| 55 | -{ |
|
| 51 | +$status = function( array $list, $key ) { |
|
| 56 | 52 | return ( isset( $list[$key] ) ? $list[$key] : '' ); |
| 57 | 53 | }; |
| 58 | 54 | |
@@ -360,9 +360,12 @@ |
||
| 360 | 360 | </select> |
| 361 | 361 | </div> |
| 362 | 362 | </div> |
| 363 | - <?php else : ?> |
|
| 363 | + <?php else { |
|
| 364 | + : ?> |
|
| 364 | 365 | <input class="item-type" type="hidden" |
| 365 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) ); ?>" |
|
| 366 | + name="<?= $enc->attr( $this->formparam( array( 'item', 'product.type' ) ) ); |
|
| 367 | +} |
|
| 368 | +?>" |
|
| 366 | 369 | value="<?= $enc->attr( $types->firstKey() ) ?>" /> |
| 367 | 370 | <?php endif; ?> |
| 368 | 371 | <div class="form-group row mandatory"> |
@@ -133,9 +133,12 @@ |
||
| 133 | 133 | </select> |
| 134 | 134 | </div> |
| 135 | 135 | </div> |
| 136 | - <?php else : ?> |
|
| 136 | + <?php else { |
|
| 137 | + : ?> |
|
| 137 | 138 | <input class="item-type" type="hidden" |
| 138 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) ); ?>" |
|
| 139 | + name="<?= $enc->attr( $this->formparam( array( 'item', 'service.type' ) ) ); |
|
| 140 | +} |
|
| 141 | +?>" |
|
| 139 | 142 | value="<?= $enc->attr( $types->getCode()->first() ) ?>" /> |
| 140 | 143 | <?php endif; ?> |
| 141 | 144 | <div class="form-group row mandatory"> |
@@ -133,9 +133,12 @@ |
||
| 133 | 133 | </select> |
| 134 | 134 | </div> |
| 135 | 135 | </div> |
| 136 | - <?php else : ?> |
|
| 136 | + <?php else { |
|
| 137 | + : ?> |
|
| 137 | 138 | <input class="item-type" type="hidden" |
| 138 | - name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) ); ?>" |
|
| 139 | + name="<?= $enc->attr( $this->formparam( array( 'item', 'plugin.type' ) ) ); |
|
| 140 | +} |
|
| 141 | +?>" |
|
| 139 | 142 | value="<?= $enc->attr( $types->getCode()->first() ) ?>" /> |
| 140 | 143 | <?php endif; ?> |
| 141 | 144 | <div class="form-group row mandatory"> |