@@ -5,8 +5,7 @@ discard block |
||
| 5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -291,8 +291,7 @@ |
||
| 291 | 291 | $propItem->setValue( $value ); |
| 292 | 292 | |
| 293 | 293 | $item->addPropertyItem( $propItem ); |
| 294 | - } |
|
| 295 | - else |
|
| 294 | + } else |
|
| 296 | 295 | { |
| 297 | 296 | $item->deletePropertyItems( $propItems ); |
| 298 | 297 | } |
@@ -291,8 +291,7 @@ |
||
| 291 | 291 | { |
| 292 | 292 | $propItem = $propItems[$entry['price.property.id']]; |
| 293 | 293 | unset( $propItems[$entry['price.property.id']] ); |
| 294 | - } |
|
| 295 | - else |
|
| 294 | + } else |
|
| 296 | 295 | { |
| 297 | 296 | $propItem = $propManager->createItem(); |
| 298 | 297 | } |
@@ -291,8 +291,7 @@ |
||
| 291 | 291 | { |
| 292 | 292 | $propItem = $propItems[$entry['price.property.id']]; |
| 293 | 293 | unset( $propItems[$entry['price.property.id']] ); |
| 294 | - } |
|
| 295 | - else |
|
| 294 | + } else |
|
| 296 | 295 | { |
| 297 | 296 | $propItem = $propManager->createItem(); |
| 298 | 297 | } |
@@ -291,8 +291,7 @@ |
||
| 291 | 291 | { |
| 292 | 292 | $propItem = $propItems[$entry['price.property.id']]; |
| 293 | 293 | unset( $propItems[$entry['price.property.id']] ); |
| 294 | - } |
|
| 295 | - else |
|
| 294 | + } else |
|
| 296 | 295 | { |
| 297 | 296 | $propItem = $propManager->createItem(); |
| 298 | 297 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | <th class="actions"> |
| 128 | 128 | <a class="btn fa act-add" tabindex="1" |
| 129 | 129 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
| 130 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
| 130 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
| 131 | 131 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
| 132 | 132 | </a> |
| 133 | 133 | |
@@ -209,13 +209,13 @@ discard block |
||
| 209 | 209 | <td class="actions"> |
| 210 | 210 | <a class="btn act-copy fa" tabindex="1" |
| 211 | 211 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
| 212 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
| 212 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
| 213 | 213 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"> |
| 214 | 214 | </a> |
| 215 | 215 | <?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?> |
| 216 | 216 | <a class="btn act-delete fa" tabindex="1" |
| 217 | 217 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>" |
| 218 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
| 218 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
| 219 | 219 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"> |
| 220 | 220 | </a> |
| 221 | 221 | <?php endif; ?> |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | <th class="actions"> |
| 128 | 128 | <a class="btn fa act-add" tabindex="1" |
| 129 | 129 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
| 130 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
| 130 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
| 131 | 131 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
| 132 | 132 | </a> |
| 133 | 133 | |
@@ -209,13 +209,13 @@ discard block |
||
| 209 | 209 | <td class="actions"> |
| 210 | 210 | <a class="btn act-copy fa" tabindex="1" |
| 211 | 211 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
| 212 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
| 212 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
| 213 | 213 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"> |
| 214 | 214 | </a> |
| 215 | 215 | <?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?> |
| 216 | 216 | <a class="btn act-delete fa" tabindex="1" |
| 217 | 217 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>" |
| 218 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
| 218 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
| 219 | 219 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"> |
| 220 | 220 | </a> |
| 221 | 221 | <?php endif; ?> |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | <th class="actions"> |
| 128 | 128 | <a class="btn fa act-add" tabindex="1" |
| 129 | 129 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
| 130 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
| 130 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
| 131 | 131 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
| 132 | 132 | </a> |
| 133 | 133 | |
@@ -209,13 +209,13 @@ discard block |
||
| 209 | 209 | <td class="actions"> |
| 210 | 210 | <a class="btn act-copy fa" tabindex="1" |
| 211 | 211 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
| 212 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
| 212 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
| 213 | 213 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"> |
| 214 | 214 | </a> |
| 215 | 215 | <?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?> |
| 216 | 216 | <a class="btn act-delete fa" tabindex="1" |
| 217 | 217 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>" |
| 218 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
| 218 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
| 219 | 219 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"> |
| 220 | 220 | </a> |
| 221 | 221 | <?php endif; ?> |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | <th class="actions"> |
| 128 | 128 | <a class="btn fa act-add" tabindex="1" |
| 129 | 129 | href="<?= $enc->attr( $this->url( $newTarget, $newCntl, $newAction, $params, [], $newConfig ) ); ?>" |
| 130 | - title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)') ); ?>" |
|
| 130 | + title="<?= $enc->attr( $this->translate( 'admin', 'Insert new entry (Ctrl+I)' ) ); ?>" |
|
| 131 | 131 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Add' ) ); ?>"> |
| 132 | 132 | </a> |
| 133 | 133 | |
@@ -209,13 +209,13 @@ discard block |
||
| 209 | 209 | <td class="actions"> |
| 210 | 210 | <a class="btn act-copy fa" tabindex="1" |
| 211 | 211 | href="<?= $enc->attr( $this->url( $copyTarget, $copyCntl, $copyAction, ['id' => $id] + $params, [], $copyConfig ) ); ?>" |
| 212 | - title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry') ); ?>" |
|
| 212 | + title="<?= $enc->attr( $this->translate( 'admin', 'Copy this entry' ) ); ?>" |
|
| 213 | 213 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Copy' ) ); ?>"> |
| 214 | 214 | </a> |
| 215 | 215 | <?php if( !$this->site()->readonly( $item->getSiteId() ) ) : ?> |
| 216 | 216 | <a class="btn act-delete fa" tabindex="1" |
| 217 | 217 | href="<?= $enc->attr( $this->url( $delTarget, $delCntl, $delAction, ['id' => $id] + $params, [], $delConfig ) ); ?>" |
| 218 | - title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry') ); ?>" |
|
| 218 | + title="<?= $enc->attr( $this->translate( 'admin', 'Delete this entry' ) ); ?>" |
|
| 219 | 219 | aria-label="<?= $enc->attr( $this->translate( 'admin', 'Delete' ) ); ?>"> |
| 220 | 220 | </a> |
| 221 | 221 | <?php endif; ?> |