Passed
Push — master ( 96b2e8...a7eb8c )
by Aimeos
15:01
created
src/Base/View.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -95,8 +95,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
src/Base/Context.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -292,11 +292,12 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.