@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | protected function logMessage($data) |
| 176 | 176 | { |
| 177 | 177 | if ($this->messageLog !== null) { |
| 178 | - file_put_contents($this->messageLog, json_encode($data) . "\n", FILE_APPEND); |
|
| 178 | + file_put_contents($this->messageLog, json_encode($data)."\n", FILE_APPEND); |
|
| 179 | 179 | } |
| 180 | 180 | } |
| 181 | 181 | |
@@ -186,11 +186,11 @@ discard block |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | $this->getSlack()->reconnect()->then( |
| 189 | - function () { |
|
| 189 | + function() { |
|
| 190 | 190 | $this->getLog()->info('Reconnected'); |
| 191 | 191 | $this->monitor = $this->startConnectionMonitor(); |
| 192 | 192 | }, |
| 193 | - function () { |
|
| 193 | + function() { |
|
| 194 | 194 | $this->getLog()->error('Reconnect failed, shutting down.'); |
| 195 | 195 | $this->shutDown(); |
| 196 | 196 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | $this->getLog()->info("Monitoring websocket connection every $interval seconds."); |
| 208 | 208 | |
| 209 | - return $this->loop->addPeriodicTimer($interval, function () use (&$timer) { |
|
| 209 | + return $this->loop->addPeriodicTimer($interval, function() use (&$timer) { |
|
| 210 | 210 | |
| 211 | 211 | static $pong = true; |
| 212 | 212 | |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | |
| 218 | 218 | $this->getSlack()->ping() |
| 219 | 219 | ->then( |
| 220 | - function (Payload $payload) use (&$pong) { |
|
| 220 | + function(Payload $payload) use (&$pong) { |
|
| 221 | 221 | $this->getLog()->info($payload->toJson()); |
| 222 | 222 | $pong = true; |
| 223 | 223 | } |