@@ -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->deleteAddress( $entry->id ); |
80 | 80 | } |
81 | - } |
|
82 | - else |
|
81 | + } else |
|
83 | 82 | { |
84 | 83 | $this->controller->deleteAddress( $relId ); |
85 | 84 | } |
@@ -48,8 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | $view->items = $cntl->get( $id ); |
50 | 50 | $view->total = 1; |
51 | - } |
|
52 | - else |
|
51 | + } else |
|
53 | 52 | { |
54 | 53 | $total = 0; |
55 | 54 | $items = $cntl->sort( $view->param( 'sort', '-order.id' ) ) |
@@ -99,8 +99,7 @@ |
||
99 | 99 | $decorators = $config->get( 'client/jsonapi/' . $dpath . 'decorators/local', [] ); |
100 | 100 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $path ); |
101 | 101 | } |
102 | - } |
|
103 | - else |
|
102 | + } else |
|
104 | 103 | { |
105 | 104 | $classprefix = '\\Aimeos\\Client\\JsonApi\\Common\\Decorator\\'; |
106 | 105 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $path ); |
@@ -81,8 +81,7 @@ |
||
81 | 81 | */ |
82 | 82 | $tplconf = 'client/jsonapi/product/template-aggregate'; |
83 | 83 | $default = 'aggregate-standard'; |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | /** client/jsonapi/product/template |
88 | 87 | * Relative path to the product JSON API template |
@@ -83,8 +83,7 @@ |
||
83 | 83 | { |
84 | 84 | $view->items = $cntl->get( $id ); |
85 | 85 | $view->total = 1; |
86 | - } |
|
87 | - else |
|
86 | + } else |
|
88 | 87 | { |
89 | 88 | $total = 0; |
90 | 89 | $items = $cntl->slice( $view->param( 'page/offset', 0 ), $view->param( 'page/limit', 25 ) ) |
@@ -39,8 +39,7 @@ |
||
39 | 39 | foreach( $item as $entry ) { |
40 | 40 | $this->entry( $entry, $fields, $fcn ); |
41 | 41 | } |
42 | - } |
|
43 | - else |
|
42 | + } else |
|
44 | 43 | { |
45 | 44 | $this->entry( $item, $fields, $fcn ); |
46 | 45 | } |
@@ -26,8 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | |
29 | -$entryFcn = function( \Aimeos\MShop\Review\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
30 | -{ |
|
29 | +$entryFcn = function( \Aimeos\MShop\Review\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
31 | 30 | $id = $item->getId(); |
32 | 31 | $attributes = $item->toArray(); |
33 | 32 | $type = $item->getResourceType(); |
@@ -85,8 +84,7 @@ discard block |
||
85 | 84 | foreach( $items as $item ) { |
86 | 85 | $data[] = $entryFcn( $item ); |
87 | 86 | } |
88 | - } |
|
89 | - else |
|
87 | + } else |
|
90 | 88 | { |
91 | 89 | $data = $entryFcn( $items ); |
92 | 90 | } |
@@ -26,8 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | |
29 | -$entryFcn = function( \Aimeos\MShop\Order\Item\Iface $item, \Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config ) |
|
30 | -{ |
|
29 | +$entryFcn = function( \Aimeos\MShop\Order\Item\Iface $item, \Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config ) { |
|
31 | 30 | $relationships = []; |
32 | 31 | $id = $item->getId(); |
33 | 32 | $attributes = $item->toArray(); |
@@ -141,8 +140,7 @@ discard block |
||
141 | 140 | }; |
142 | 141 | |
143 | 142 | |
144 | -$productFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) |
|
145 | -{ |
|
143 | +$productFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) { |
|
146 | 144 | $result = []; |
147 | 145 | $baseItem = $item->getBaseItem(); |
148 | 146 | |
@@ -186,8 +184,7 @@ discard block |
||
186 | 184 | }; |
187 | 185 | |
188 | 186 | |
189 | -$serviceFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) |
|
190 | -{ |
|
187 | +$serviceFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) { |
|
191 | 188 | $result = []; |
192 | 189 | $baseItem = $item->getBaseItem(); |
193 | 190 | |
@@ -223,8 +220,7 @@ discard block |
||
223 | 220 | }; |
224 | 221 | |
225 | 222 | |
226 | -$addressFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) |
|
227 | -{ |
|
223 | +$addressFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) { |
|
228 | 224 | $list = []; |
229 | 225 | $baseItem = $item->getBaseItem(); |
230 | 226 | |
@@ -250,8 +246,7 @@ discard block |
||
250 | 246 | }; |
251 | 247 | |
252 | 248 | |
253 | -$couponFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) |
|
254 | -{ |
|
249 | +$couponFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) { |
|
255 | 250 | $coupons = []; |
256 | 251 | $baseItem = $item->getBaseItem(); |
257 | 252 | |
@@ -266,8 +261,7 @@ discard block |
||
266 | 261 | }; |
267 | 262 | |
268 | 263 | |
269 | -$customerFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
270 | -{ |
|
264 | +$customerFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
271 | 265 | $result = []; |
272 | 266 | $baseItem = $item->getBaseItem(); |
273 | 267 | |
@@ -332,8 +326,7 @@ discard block |
||
332 | 326 | $included = array_replace_recursive( $included, $serviceFcn( $item ) ); |
333 | 327 | $included = array_replace_recursive( $included, $customerFcn( $item ) ); |
334 | 328 | } |
335 | - } |
|
336 | - else |
|
329 | + } else |
|
337 | 330 | { |
338 | 331 | $data = $entryFcn( $items, $this->get( 'form' ) ); |
339 | 332 | $included = array_replace_recursive( $included, $couponFcn( $items ) ); |