@@ -303,8 +303,7 @@ |
||
| 303 | 303 | { |
| 304 | 304 | $propItem = $propItems[$entry['customer.property.id']]; |
| 305 | 305 | unset( $propItems[$entry['customer.property.id']] ); |
| 306 | - } |
|
| 307 | - else |
|
| 306 | + } else |
|
| 308 | 307 | { |
| 309 | 308 | $propItem = $manager->createItem(); |
| 310 | 309 | } |
@@ -407,7 +407,7 @@ |
||
| 407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
| 408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
| 409 | 409 | } |
| 410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
| 410 | + catch( \Exception $e ) {; } // Show product even if file isn't available any more |
|
| 411 | 411 | } |
| 412 | 412 | |
| 413 | 413 | return $data; |
@@ -407,7 +407,9 @@ |
||
| 407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
| 408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
| 409 | 409 | } |
| 410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
| 410 | + catch( \Exception $e ) |
|
| 411 | + { |
|
| 412 | +; } // Show product even if file isn't available any more |
|
| 411 | 413 | } |
| 412 | 414 | |
| 413 | 415 | return $data; |
@@ -351,8 +351,7 @@ |
||
| 351 | 351 | { |
| 352 | 352 | $list['product.lists.siteid'] = (string) $map[$attrId]->getSiteId(); |
| 353 | 353 | $list['product.lists.id'] = (string) $map[$attrId]->getId(); |
| 354 | - } |
|
| 355 | - else |
|
| 354 | + } else |
|
| 356 | 355 | { |
| 357 | 356 | $list['product.lists.siteid'] = $siteId; |
| 358 | 357 | $list['product.lists.id'] = ''; |
@@ -21,8 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | 23 | |
| 24 | -$pgroup = function( array $params, $group ) |
|
| 25 | -{ |
|
| 24 | +$pgroup = function( array $params, $group ) { |
|
| 26 | 25 | if( $group != null ) { |
| 27 | 26 | return [$group => ['page' => $params]]; |
| 28 | 27 | } |
@@ -56,16 +55,14 @@ discard block |
||
| 56 | 55 | $controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' ); |
| 57 | 56 | $action = $this->config( 'admin/jqadm/url/get/action', 'get' ); |
| 58 | 57 | $config = $this->config( 'admin/jqadm/url/get/config', [] ); |
| 59 | - } |
|
| 60 | - else |
|
| 58 | + } else |
|
| 61 | 59 | { |
| 62 | 60 | $target = $this->config( 'admin/jqadm/url/create/target' ); |
| 63 | 61 | $controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' ); |
| 64 | 62 | $action = $this->config( 'admin/jqadm/url/create/action', 'create' ); |
| 65 | 63 | $config = $this->config( 'admin/jqadm/url/create/config', [] ); |
| 66 | 64 | } |
| 67 | -} |
|
| 68 | -else |
|
| 65 | +} else |
|
| 69 | 66 | { |
| 70 | 67 | $target = $this->config( 'admin/jqadm/url/search/target' ); |
| 71 | 68 | $controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); |
@@ -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 | { |
| 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; ?> |