@@ -196,8 +196,7 @@ |
||
| 196 | 196 | try |
| 197 | 197 | { |
| 198 | 198 | $item = $manager->findItem( $code ); |
| 199 | - } |
|
| 200 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 199 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 201 | 200 | { |
| 202 | 201 | $item = $manager->createItem(); |
| 203 | 202 | $item->setLabel( $code ); |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * Returns the initial HTML view for the admin interface. |
| 35 | 35 | * |
| 36 | 36 | * @param \Illuminate\Http\Request $request Laravel request object |
| 37 | - * @return \Illuminate\Contracts\View\View View for rendering the output |
|
| 37 | + * @return \Illuminate\Http\RedirectResponse View for rendering the output |
|
| 38 | 38 | */ |
| 39 | 39 | public function indexAction( Request $request ) |
| 40 | 40 | { |
@@ -100,8 +100,7 @@ discard block |
||
| 100 | 100 | || ( ( $user = \Illuminate\Support\Facades\Auth::user() ) !== null && $user->superuser ) |
| 101 | 101 | ) { |
| 102 | 102 | $helper = new \Aimeos\MW\View\Helper\Access\All( $view ); |
| 103 | - } |
|
| 104 | - else |
|
| 103 | + } else |
|
| 105 | 104 | { |
| 106 | 105 | $support = $this->support; |
| 107 | 106 | |
@@ -245,8 +244,7 @@ discard block |
||
| 245 | 244 | { |
| 246 | 245 | $i18n = $this->i18n->get( array( $locale ) ); |
| 247 | 246 | $translation = $i18n[$locale]; |
| 248 | - } |
|
| 249 | - else |
|
| 247 | + } else |
|
| 250 | 248 | { |
| 251 | 249 | $translation = new \Aimeos\MW\Translation\None( 'en' ); |
| 252 | 250 | } |