Passed
Push — master ( 508f1b...18fda4 )
by Aimeos
04:48
created
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( $guard->user()?->email ?: \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.
src/Controller/ResolveController.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,10 +67,15 @@
 block discarded – undo
67 67
 
68 68
 		foreach( array_reverse( self::$fcn ) as $name => $fcn )
69 69
 		{
70
-			try {
70
+			try
71
+			{
71 72
 				return call_user_func_array( $fcn->bindTo( $this, static::class ), [$context, $path] );
72
-			} catch( \Exception $e ) {
73
-				if( $e->getCode() !== 404 ) throw $e;
73
+			}
74
+			catch( \Exception $e )
75
+			{
76
+				if( $e->getCode() !== 404 ) {
77
+					throw $e;
78
+				}
74 79
 			}
75 80
 		}
76 81
 
Please login to merge, or discard this patch.