@@ -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'] = ''; |
@@ -454,8 +454,7 @@ |
||
454 | 454 | { |
455 | 455 | $this->checkSite( $super, $data['locale.site.id'] ); |
456 | 456 | $item = $manager->get( $data['locale.site.id'] ); |
457 | - } |
|
458 | - else |
|
457 | + } else |
|
459 | 458 | { |
460 | 459 | $this->checkSite( $super ); |
461 | 460 | $item = $manager->create(); |
@@ -278,8 +278,7 @@ |
||
278 | 278 | { |
279 | 279 | $propItem = $propItems[$entry['media.property.id']]; |
280 | 280 | unset( $propItems[$entry['media.property.id']] ); |
281 | - } |
|
282 | - else |
|
281 | + } else |
|
283 | 282 | { |
284 | 283 | $propItem = $propManager->create(); |
285 | 284 | } |
@@ -366,9 +366,12 @@ |
||
366 | 366 | { |
367 | 367 | $manager = \Aimeos\MShop::create( $this->context(), 'catalog' ); |
368 | 368 | |
369 | - try { |
|
369 | + try |
|
370 | + { |
|
370 | 371 | return $manager->getTree( null, [], \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )->getId(); |
371 | - } catch( \Exception $e ) { |
|
372 | + } |
|
373 | + catch( \Exception $e ) |
|
374 | + { |
|
372 | 375 | return null; |
373 | 376 | } |
374 | 377 | } |
@@ -92,7 +92,8 @@ discard block |
||
92 | 92 | <?php if( $logos = $this->get( 'itemData/locale.site.logo' ) ) : ?> |
93 | 93 | <img class="item-preview" |
94 | 94 | src="<?= $enc->attr( $this->content( end( $logos ) ) ) ?>" /> |
95 | - <?php else : ?> |
|
95 | + <?php else { |
|
96 | + : ?> |
|
96 | 97 | <p class="item-preview"> |
97 | 98 | <?= $enc->html( $this->translate( 'admin', 'Upload shop logo' ) ) ?> |
98 | 99 | </p> |
@@ -106,7 +107,9 @@ discard block |
||
106 | 107 | <div class="box"> |
107 | 108 | |
108 | 109 | <div class="form-group media-preview"> |
109 | - <input class="fileupload" type="file" tabindex="<?= $this->get( 'tabindex', 1 ); ?>" |
|
110 | + <input class="fileupload" type="file" tabindex="<?= $this->get( 'tabindex', 1 ); |
|
111 | +} |
|
112 | +?>" |
|
110 | 113 | name="media[icon]" /> |
111 | 114 | <?php if( $icon = $this->get( 'itemData/locale.site.icon' ) ) : ?> |
112 | 115 | <img class="item-preview" |
@@ -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), 2016-2022 |
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 = 0; |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | }; |
24 | 23 | |
25 | 24 | |
26 | -$name = function( \Aimeos\MShop\Order\Item\Iface $item ) |
|
27 | -{ |
|
25 | +$name = function( \Aimeos\MShop\Order\Item\Iface $item ) { |
|
28 | 26 | if( $order = $item->getBaseItem() ) |
29 | 27 | { |
30 | 28 | $type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT; |
@@ -42,8 +40,7 @@ discard block |
||
42 | 40 | }; |
43 | 41 | |
44 | 42 | |
45 | -$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) |
|
46 | -{ |
|
43 | +$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) { |
|
47 | 44 | if( $order = $item->getBaseItem() ) |
48 | 45 | { |
49 | 46 | $type = \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT; |
@@ -59,8 +56,7 @@ discard block |
||
59 | 56 | }; |
60 | 57 | |
61 | 58 | |
62 | -$status = function( array $list, $key ) |
|
63 | -{ |
|
59 | +$status = function( array $list, $key ) { |
|
64 | 60 | return ( isset( $list[$key] ) ? $list[$key] : '' ); |
65 | 61 | }; |
66 | 62 |
@@ -355,7 +355,8 @@ discard block |
||
355 | 355 | <div class="col-sm-8"><span class="item-coupon"><?= $enc->attr( $code ) ?></span></div> |
356 | 356 | </div> |
357 | 357 | <?php endforeach ?> |
358 | - <?php else : ?> |
|
358 | + <?php else { |
|
359 | + : ?> |
|
359 | 360 | <?= $enc->html( $this->translate( 'admin', 'No voucher' ) ) ?> |
360 | 361 | <?php endif ?> |
361 | 362 | </div> |
@@ -389,6 +390,7 @@ discard block |
||
389 | 390 | /// short order address with company (%1$s), first name (%2$s), last name (%3$s), street (%4$s), house number (%5$s), |
390 | 391 | /// zip code (%6$s), city (%7$s),state (%8$s), countryid (%9$s), e-mail (%10$s), telephone (%11$s), VAT ID (%12$s) |
391 | 392 | $addrFormat = $this->translate( 'admin', "%1\$s\n%2\$s %3\$s\n%5\$s %4\$s\n%7\$s, %6\$s\n%8\$s, %9\$s\n%10\$s\n%11\$s\n%12\$s" ); |
393 | +} |
|
392 | 394 | ?> |
393 | 395 | <span class="address-text" data-format="<?= $enc->attr( $addrFormat ) ?>"><!-- inserted by order.js --></span> |
394 | 396 | <span class="address-edit"></span> |
@@ -56,16 +56,14 @@ |
||
56 | 56 | $controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' ); |
57 | 57 | $action = $this->config( 'admin/jqadm/url/get/action', 'get' ); |
58 | 58 | $config = $this->config( 'admin/jqadm/url/get/config', [] ); |
59 | - } |
|
60 | - else |
|
59 | + } else |
|
61 | 60 | { |
62 | 61 | $target = $this->config( 'admin/jqadm/url/create/target' ); |
63 | 62 | $controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' ); |
64 | 63 | $action = $this->config( 'admin/jqadm/url/create/action', 'create' ); |
65 | 64 | $config = $this->config( 'admin/jqadm/url/create/config', [] ); |
66 | 65 | } |
67 | -} |
|
68 | -else |
|
66 | +} else |
|
69 | 67 | { |
70 | 68 | $target = $this->config( 'admin/jqadm/url/search/target' ); |
71 | 69 | $controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); |