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