@@ -118,16 +118,14 @@ |
||
118 | 118 | { |
119 | 119 | $response = $this->getItems( $view, $request, $response ); |
120 | 120 | $status = 200; |
121 | - } |
|
122 | - catch( \Aimeos\MShop\Exception $e ) |
|
121 | + } catch( \Aimeos\MShop\Exception $e ) |
|
123 | 122 | { |
124 | 123 | $status = 404; |
125 | 124 | $view->errors = array( array( |
126 | 125 | 'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ), |
127 | 126 | 'detail' => $e->getTraceAsString(), |
128 | 127 | ) ); |
129 | - } |
|
130 | - catch( \Exception $e ) |
|
128 | + } catch( \Exception $e ) |
|
131 | 129 | { |
132 | 130 | $status = 500; |
133 | 131 | $view->errors = array( array( |
@@ -176,8 +176,7 @@ |
||
176 | 176 | $item = $manager->getItem( $entry->id ); |
177 | 177 | $item = $this->addItemData( $manager, $item, $entry, $item->getResourceType() ); |
178 | 178 | $item = $manager->saveItem( $item ); |
179 | - } |
|
180 | - else |
|
179 | + } else |
|
181 | 180 | { |
182 | 181 | $item = $manager->createItem(); |
183 | 182 | $item = $this->addItemData( $manager, $item, $entry, $item->getResourceType() ); |
@@ -182,8 +182,7 @@ discard block |
||
182 | 182 | $view->data = $manager->searchItems( $search, [], $total ); |
183 | 183 | $view->listItems = $this->getListItems( $view->data, $include ); |
184 | 184 | $view->childItems = []; |
185 | - } |
|
186 | - else |
|
185 | + } else |
|
187 | 186 | { |
188 | 187 | $level = \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE; |
189 | 188 | if( in_array( 'catalog', $include ) ) { |
@@ -245,8 +244,7 @@ discard block |
||
245 | 244 | if( isset( $entry->parentid ) && $targetId !== null ) { |
246 | 245 | $manager->moveItem( $item->getId(), $entry->parentid, $targetId, $refId ); |
247 | 246 | } |
248 | - } |
|
249 | - else |
|
247 | + } else |
|
250 | 248 | { |
251 | 249 | $item = $manager->createItem(); |
252 | 250 | $item = $this->addItemData( $manager, $item, $entry, $item->getResourceType() ); |