@@ -190,11 +190,11 @@ |
||
190 | 190 | |
191 | 191 | if ($duration) { |
192 | 192 | $this->rtm()->typing($channel); |
193 | - $this->getLoop()->addTimer($duration, function () use ($channel, $message, $deferred) { |
|
193 | + $this->getLoop()->addTimer($duration, function() use ($channel, $message, $deferred) { |
|
194 | 194 | if ($message) { |
195 | 195 | $this->rtm() |
196 | 196 | ->sendMessage($message, $channel) |
197 | - ->done(function (array $result) use ($deferred) { |
|
197 | + ->done(function(array $result) use ($deferred) { |
|
198 | 198 | $this->logger->info('[<bold>BOT.TYP</bold>] Done Typing'); |
199 | 199 | $deferred->resolve($result); |
200 | 200 | }); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | // Start listening |
50 | - $promise = $this->rtmClient->listen($loop, $payload, $middleware, function(){}); |
|
50 | + $promise = $this->rtmClient->listen($loop, $payload, $middleware, function() {}); |
|
51 | 51 | |
52 | 52 | // Handle connecting |
53 | 53 | $promise->done(function($result) use ($loop) { |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | // Track how many times pings fail |
74 | 74 | $fails = 0; |
75 | 75 | |
76 | - $loop->addPeriodicTimer(10, function () use (&$fails) { |
|
77 | - $this->rtmClient->sendPing()->otherwise(function () use (&$fails) { |
|
76 | + $loop->addPeriodicTimer(10, function() use (&$fails) { |
|
77 | + $this->rtmClient->sendPing()->otherwise(function() use (&$fails) { |
|
78 | 78 | $fails++; |
79 | 79 | |
80 | 80 | if ($fails > 3) { |