@@ -58,8 +58,7 @@ discard block |
||
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' ); |
@@ -81,16 +80,14 @@ discard block |
||
81 | 80 | } |
82 | 81 | |
83 | 82 | $status = 200; |
84 | - } |
|
85 | - catch( \Aimeos\MShop\Exception $e ) |
|
83 | + } catch( \Aimeos\MShop\Exception $e ) |
|
86 | 84 | { |
87 | 85 | $status = 404; |
88 | 86 | $view->errors = array( array( |
89 | 87 | 'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ), |
90 | 88 | 'detail' => $e->getTraceAsString(), |
91 | 89 | ) ); |
92 | - } |
|
93 | - catch( \Exception $e ) |
|
90 | + } catch( \Exception $e ) |
|
94 | 91 | { |
95 | 92 | $status = 500; |
96 | 93 | $view->errors = array( array( |
@@ -156,8 +156,7 @@ |
||
156 | 156 | $data[] = $entryFcn( $item, $prices, $feConfig ); |
157 | 157 | $included = array_merge( $included, $refFcn( $item ) ); |
158 | 158 | } |
159 | - } |
|
160 | - else |
|
159 | + } else |
|
161 | 160 | { |
162 | 161 | $data = $entryFcn( $this->items, $prices, $feConfig ); |
163 | 162 | $included = $refFcn( $this->items ); |