Completed
Push — master ( 82b45c...643174 )
by Leo
02:15
created
src/Workers/WebSocketWorker.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
 
37 37
         $connector($this->wssHost, [$this->subProtocol], ['Host' => $this->host] + $this->auth->getBasicAuth())->then(
38 38
 
39
-            function (WebSocket $stream) {
40
-                $stream->on('message', function (MessageInterface $message) {
39
+            function(WebSocket $stream) {
40
+                $stream->on('message', function(MessageInterface $message) {
41 41
                     $this->events->message($message, $this->apiWrapper, $this->gearmanClient);
42 42
                 });
43
-                $stream->on('close', function ($code = null, $reason = null) {
43
+                $stream->on('close', function($code = null, $reason = null) {
44 44
                     $this->events->close($code, $reason);
45 45
                 });
46
-            }, function (\Exception $e) use ($loop) {
46
+            }, function(\Exception $e) use ($loop) {
47 47
                 $this->events->error($e);
48 48
                 $loop->stop();
49 49
             }
Please login to merge, or discard this patch.