Completed
Push — master ( e7a27d...479a33 )
by Leo
12s
created
src/Workers/WebSocketWorker.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
 
31 31
         $connector($this->wssHost, [$this->subProtocol], ['Host' => $this->host] + $this->auth->getBasicAuth())->then(
32 32
 
33
-            function (WebSocket $stream) {
34
-                $stream->on('message', function (MessageInterface $msg) {
33
+            function(WebSocket $stream) {
34
+                $stream->on('message', function(MessageInterface $msg) {
35 35
                     $this->message($msg);
36 36
                 });
37 37
 
38
-                $stream->on('close', function ($code = null, $reason = null) {
38
+                $stream->on('close', function($code = null, $reason = null) {
39 39
                     $this->close($code, $reason);
40 40
                 });
41
-            }, function (\Exception $e) use ($loop) {
41
+            }, function(\Exception $e) use ($loop) {
42 42
                 echo "Could not connect: {$e->getMessage()}\n";
43 43
                 $loop->stop();
44 44
             }
Please login to merge, or discard this patch.