@@ -5,15 +5,13 @@ discard block |
||
| 5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2024 |
| 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 | $price = $item->getPrice(); |
| 11 | 10 | return sprintf( $priceFormat, $price->getValue(), $price->getCurrencyId() ); |
| 12 | 11 | }; |
| 13 | 12 | |
| 14 | 13 | |
| 15 | -$name = function( \Aimeos\MShop\Order\Item\Iface $item ) |
|
| 16 | -{ |
|
| 14 | +$name = function( \Aimeos\MShop\Order\Item\Iface $item ) { |
|
| 17 | 15 | $addresses = $item->getAddresses(); |
| 18 | 16 | |
| 19 | 17 | if( !isset( $addresses[\Aimeos\MShop\Order\Item\Address\Base::TYPE_PAYMENT] ) ) { |
@@ -30,8 +28,7 @@ discard block |
||
| 30 | 28 | }; |
| 31 | 29 | |
| 32 | 30 | |
| 33 | -$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) |
|
| 34 | -{ |
|
| 31 | +$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) { |
|
| 35 | 32 | $services = $item->getServices(); |
| 36 | 33 | |
| 37 | 34 | if( isset( $services[\Aimeos\MShop\Order\Item\Service\Base::TYPE_PAYMENT] ) ) { |
@@ -40,8 +37,7 @@ discard block |
||
| 40 | 37 | }; |
| 41 | 38 | |
| 42 | 39 | |
| 43 | -$status = function( $list, $key ) |
|
| 44 | -{ |
|
| 40 | +$status = function( $list, $key ) { |
|
| 45 | 41 | return ( isset( $list[$key] ) ? $list[$key] : '' ); |
| 46 | 42 | }; |
| 47 | 43 | |
@@ -301,7 +301,7 @@ |
||
| 301 | 301 | <td class="attribute-id"><a class="items-field" href="<?= $url ?>"><?= $enc->html( $item->getId() ) ?></a></td> |
| 302 | 302 | <?php endif ?> |
| 303 | 303 | <?php if( in_array( 'attribute.domain', $fields ) ) : ?> |
| 304 | - <td class="attribute-domain"><a class="items-field" href="<?= $url ?>"><?= $enc->html( $this->translate( 'admin', $item->getDomain() ) ) ?></a></td> |
|
| 304 | + <td class="attribute-domain"><a class="items-field" href="<?= $url ?>"><?= $enc->html( $this->translate( 'admin', $item->getDomain() ) ) ?></a></td> |
|
| 305 | 305 | <?php endif ?> |
| 306 | 306 | <?php if( in_array( 'attribute.status', $fields ) ) : ?> |
| 307 | 307 | <td class="attribute-status"><a class="items-field" href="<?= $url ?>"><div class="icon status-<?= $enc->attr( $item->getStatus() ) ?>"></div></a></td> |