Completed
Push — master ( e9e104...d0006b )
by Dan
02:01
created
src/Yabot.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     protected function logMessage($data)
173 173
     {
174 174
         if ($this->messageLog !== null) {
175
-            file_put_contents($this->messageLog, json_encode($data) . "\n", FILE_APPEND);
175
+            file_put_contents($this->messageLog, json_encode($data)."\n", FILE_APPEND);
176 176
         }
177 177
     }
178 178
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     {
181 181
         if ($interval = $this->get('connection_monitor.interval')) {
182 182
             $this->getLog()->info("Monitoring websocket connection every $interval seconds.");
183
-            $this->loop->addPeriodicTimer($interval, function () {
183
+            $this->loop->addPeriodicTimer($interval, function() {
184 184
                 static $pong = true;
185 185
                 if (!$pong) {
186 186
                     $this->getLog()->error('Connection failed: no pong!');
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                 }
189 189
                 $this->getSlack()->getRealTimeClient()->ping()
190 190
                     ->then(
191
-                        function (Payload $payload) use (&$pong) {
191
+                        function(Payload $payload) use (&$pong) {
192 192
                             $this->getLog()->info($payload->toJson());
193 193
                             $pong = true;
194 194
                         }
Please login to merge, or discard this patch.