@@ -63,8 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | $cntl->store(); |
66 | - } |
|
67 | - else |
|
66 | + } else |
|
68 | 67 | { |
69 | 68 | if( isset( $items[$relId] ) ) { |
70 | 69 | $cntl->deletePropertyItem( $items[$relId] )->store(); |
@@ -113,8 +112,7 @@ discard block |
||
113 | 112 | { |
114 | 113 | $view->items = $items; |
115 | 114 | $view->total = count( $items ); |
116 | - } |
|
117 | - else |
|
115 | + } else |
|
118 | 116 | { |
119 | 117 | $view->items = isset( $items[$relId] ) ? $items[$relId] : null; |
120 | 118 | $view->total = empty( $view->items ) ? 0 : 1; |
@@ -25,8 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | |
28 | -$entryFcn = function( \Aimeos\MShop\Common\Item\Property\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
29 | -{ |
|
28 | +$entryFcn = function( \Aimeos\MShop\Common\Item\Property\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
30 | 29 | $id = $item->getId(); |
31 | 30 | $attributes = $item->toArray(); |
32 | 31 | $type = $item->getResourceType(); |
@@ -85,8 +84,7 @@ discard block |
||
85 | 84 | foreach( $items as $propItem ) { |
86 | 85 | $data[] = $entryFcn( $propItem ); |
87 | 86 | } |
88 | - } |
|
89 | - else |
|
87 | + } else |
|
90 | 88 | { |
91 | 89 | $data = $entryFcn( $items ); |
92 | 90 | } |