@@ -103,8 +103,7 @@ discard block |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | |
| 106 | -$entryFcn = function( \Aimeos\MShop\Product\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 107 | -{ |
|
| 106 | +$entryFcn = function( \Aimeos\MShop\Product\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 108 | 107 | $id = $item->getId(); |
| 109 | 108 | $attributes = $item->toArray(); |
| 110 | 109 | $type = $item->getResourceType(); |
@@ -166,8 +165,7 @@ discard block |
||
| 166 | 165 | }; |
| 167 | 166 | |
| 168 | 167 | |
| 169 | -$includeFcn = function( \Aimeos\MShop\Product\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 170 | -{ |
|
| 168 | +$includeFcn = function( \Aimeos\MShop\Product\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 171 | 169 | $result = []; |
| 172 | 170 | |
| 173 | 171 | foreach( $item->getStockItems() as $id => $stockItem ) |
@@ -242,8 +240,7 @@ discard block |
||
| 242 | 240 | $data[] = $entryFcn( $item ); |
| 243 | 241 | $included = array_replace_recursive( $included, $includeFcn( $item ) ); |
| 244 | 242 | } |
| 245 | - } |
|
| 246 | - else |
|
| 243 | + } else |
|
| 247 | 244 | { |
| 248 | 245 | $data = $entryFcn( $items ); |
| 249 | 246 | $included = array_replace_recursive( $included, $includeFcn( $items ) ); |