@@ -95,8 +95,7 @@ discard block |
||
| 95 | 95 | || ( ( $user = \Illuminate\Support\Facades\Auth::user() ) !== null && $user->superuser ) |
| 96 | 96 | ) { |
| 97 | 97 | $helper = new \Aimeos\Base\View\Helper\Access\All( $view ); |
| 98 | - } |
|
| 99 | - else |
|
| 98 | + } else |
|
| 100 | 99 | { |
| 101 | 100 | $helper = new \Aimeos\Base\View\Helper\Access\Standard( $view, function() use ( $context ) { |
| 102 | 101 | return $context->groups(); |
@@ -156,8 +155,7 @@ discard block |
||
| 156 | 155 | { |
| 157 | 156 | $pattern = $config->get( 'client/html/common/format/pattern' ); |
| 158 | 157 | $helper = new \Aimeos\Base\View\Helper\Number\Locale( $view, $locale, $pattern ); |
| 159 | - } |
|
| 160 | - else |
|
| 158 | + } else |
|
| 161 | 159 | { |
| 162 | 160 | $sep1000 = $config->get( 'client/html/common/format/separator1000', '' ); |
| 163 | 161 | $decsep = $config->get( 'client/html/common/format/separatorDecimal', '.' ); |
@@ -243,8 +241,7 @@ discard block |
||
| 243 | 241 | { |
| 244 | 242 | $i18n = $this->i18n->get( array( $locale ) ); |
| 245 | 243 | $translation = $i18n[$locale]; |
| 246 | - } |
|
| 247 | - else |
|
| 244 | + } else |
|
| 248 | 245 | { |
| 249 | 246 | $translation = new \Aimeos\Base\Translation\None( 'en' ); |
| 250 | 247 | } |
@@ -292,11 +292,12 @@ |
||
| 292 | 292 | return $context->user()?->getGroups() ?? []; |
| 293 | 293 | } ); |
| 294 | 294 | } |
| 295 | - catch( \Exception $e ) {} // avoid errors if user is assigned to another site |
|
| 295 | + catch( \Exception $e ) |
|
| 296 | + { |
|
| 297 | +} // avoid errors if user is assigned to another site |
|
| 296 | 298 | |
| 297 | 299 | $context->setEditor( $user->name ?? (string) \Request::ip() ); |
| 298 | - } |
|
| 299 | - elseif( $ip = \Request::ip() ) |
|
| 300 | + } elseif( $ip = \Request::ip() ) |
|
| 300 | 301 | { |
| 301 | 302 | $context->setEditor( $ip ); |
| 302 | 303 | } |