@@ -251,7 +251,7 @@ |
||
251 | 251 | |
252 | 252 | |
253 | 253 | /** |
254 | - * @param $instanceName |
|
254 | + * @param string $instanceName |
|
255 | 255 | * @param ConnectionStatus $connectionStatus |
256 | 256 | * |
257 | 257 | * @return bool whether the connection exists in the database |
@@ -136,14 +136,12 @@ |
||
136 | 136 | $logger->debug('Got message from client (type: {messageType})', [ |
137 | 137 | 'messageType' => $message->getType(), |
138 | 138 | ]); |
139 | - } |
|
140 | - catch (MalformedRequestException $e) |
|
139 | + } catch (MalformedRequestException $e) |
|
141 | 140 | { |
142 | 141 | $logger->error('Got malformed message from client (reason: {reason})', [ |
143 | 142 | 'reason' => $e->getMessage(), |
144 | 143 | ]); |
145 | - } |
|
146 | - catch (UnknownRequestException $e) |
|
144 | + } catch (UnknownRequestException $e) |
|
147 | 145 | { |
148 | 146 | // The server itself sometimes sends out messages that are received here, hence debug |
149 | 147 | $logger->debug('Got unknown message from client'); |
@@ -224,8 +224,7 @@ |
||
224 | 224 | |
225 | 225 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_REACHABLE, |
226 | 226 | new InstanceStateEvent($instance)); |
227 | - } |
|
228 | - catch (\Exception $e) |
|
227 | + } catch (\Exception $e) |
|
229 | 228 | { |
230 | 229 | $this->_eventDispatcher->dispatch(Events::INSTANCE_STATE_UNREACHABLE, |
231 | 230 | new InstanceStateEvent($instance)); |