Completed
Push — master ( 132c41...627059 )
by Sam
02:29
created
src/cli/StatusManager.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Jalle19\StatusManager;
4 4
 
5
-use Jalle19\StatusManager\Database;
6 5
 use Jalle19\StatusManager\Event\ConnectionSeenEvent;
7 6
 use Jalle19\StatusManager\Event\Events;
8 7
 use Jalle19\StatusManager\Event\InputSeenEvent;
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -225,14 +225,12 @@
 block discarded – undo
225 225
 
226 226
 					$this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_REACHABLE,
227 227
 						new InstanceStateEvent($instance));
228
-				}
229
-				catch (\Exception $e)
228
+				} catch (\Exception $e)
230 229
 				{
231 230
 					$this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_UNREACHABLE,
232 231
 						new InstanceStateEvent($instance));
233 232
 				}
234
-			}
235
-			else
233
+			} else
236 234
 			{
237 235
 				$this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_MAYBE_REACHABLE,
238 236
 					new InstanceStateEvent($instance));
Please login to merge, or discard this patch.
src/cli/InstanceStateManager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@
 block discarded – undo
110 110
 			$this->_logger->info('Retrying instance {instanceName} during next cycle', [
111 111
 				'instanceName' => $instance->getName(),
112 112
 			]);
113
-		}
114
-		else
113
+		} else
115 114
 			$instanceState->incrementRetryCount();
116 115
 	}
117 116
 
Please login to merge, or discard this patch.