@@ -58,8 +58,7 @@ |
||
| 58 | 58 | $view->items = $provider->getServiceItem(); |
| 59 | 59 | $view->total = 1; |
| 60 | 60 | } |
| 61 | - } |
|
| 62 | - else |
|
| 61 | + } else |
|
| 63 | 62 | { |
| 64 | 63 | $attributes = $prices = $items = []; |
| 65 | 64 | $type = $view->param( 'filter/cs_type' ); |
@@ -43,8 +43,7 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $view->items = $cntl->getItem( $id ); |
| 45 | 45 | $view->total = 1; |
| 46 | - } |
|
| 47 | - else |
|
| 46 | + } else |
|
| 48 | 47 | { |
| 49 | 48 | $total = 0; |
| 50 | 49 | $filter = $cntl->createFilter(); |
@@ -81,8 +81,7 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | $tplconf = 'client/jsonapi/product/standard/template-aggregate'; |
| 83 | 83 | $default = 'aggregate-standard'; |
| 84 | - } |
|
| 85 | - else |
|
| 84 | + } else |
|
| 86 | 85 | { |
| 87 | 86 | /** client/jsonapi/product/standard/template |
| 88 | 87 | * Relative path to the product JSON API template |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $this->controller->deleteService( $entry->id ); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $this->controller->deleteService( $relId ); |
| 85 | 84 | } |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $this->controller->setAddress( $entry->id, null ); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $this->controller->setAddress( $relId, null ); |
| 85 | 84 | } |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $this->controller->deleteProduct( $entry->id ); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $this->controller->deleteProduct( $relId ); |
| 85 | 84 | } |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $this->controller->deleteCoupon( $entry->id ); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $this->controller->deleteCoupon( $relId ); |
| 85 | 84 | } |
@@ -24,8 +24,7 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | |
| 27 | -$entryFcn = function( \Aimeos\MShop\Order\Item\Iface $item, \Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 28 | -{ |
|
| 27 | +$entryFcn = function( \Aimeos\MShop\Order\Item\Iface $item, \Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 29 | 28 | $id = $item->getId(); |
| 30 | 29 | $attributes = $item->toArray(); |
| 31 | 30 | $type = $item->getResourceType(); |
@@ -96,8 +95,7 @@ discard block |
||
| 96 | 95 | foreach( $items as $item ) { |
| 97 | 96 | $data[] = $entryFcn( $item, $this->get( 'form' ) ); |
| 98 | 97 | } |
| 99 | - } |
|
| 100 | - else |
|
| 98 | + } else |
|
| 101 | 99 | { |
| 102 | 100 | $data = $entryFcn( $items, $this->get( 'form' ) ); |
| 103 | 101 | } |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | |
| 32 | -$entryFcn = function( \Aimeos\MShop\Locale\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 33 | -{ |
|
| 32 | +$entryFcn = function( \Aimeos\MShop\Locale\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 34 | 33 | $id = $item->getId(); |
| 35 | 34 | $attributes = $item->toArray(); |
| 36 | 35 | $type = $item->getResourceType(); |
@@ -98,8 +97,7 @@ discard block |
||
| 98 | 97 | foreach( $items as $localeItem ) { |
| 99 | 98 | $data[] = $entryFcn( $localeItem ); |
| 100 | 99 | } |
| 101 | - } |
|
| 102 | - else |
|
| 100 | + } else |
|
| 103 | 101 | { |
| 104 | 102 | $data = $entryFcn( $items ); |
| 105 | 103 | } |