Completed
Push — master ( 479a33...82b45c )
by Leo
01:42
created
Workers/WebSocketWorker.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
 
33 33
         $connector($this->wssHost, [$this->subProtocol], ['Host' => $this->host] + $this->auth->getBasicAuth())->then(
34 34
 
35
-            function (WebSocket $stream) {
36
-                $stream->on('message', function (MessageInterface $message) {
35
+            function(WebSocket $stream) {
36
+                $stream->on('message', function(MessageInterface $message) {
37 37
                     $this->events->message($message);
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->events->close($code, $reason);
42 42
                 });
43
-            }, function (\Exception $e) use ($loop) {
43
+            }, function(\Exception $e) use ($loop) {
44 44
                 $this->events->error($e);
45 45
                 $loop->stop();
46 46
             }
Please login to merge, or discard this patch.
Events/WebSocketEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
     public function close($code, $reason)
16 16
     {
17
-        echo "Connection closed. ({$code}){$reason}" . PHP_EOL;
17
+        echo "Connection closed. ({$code}){$reason}".PHP_EOL;
18 18
     }
19 19
 
20 20
     public function error(\Exception $exception)
Please login to merge, or discard this patch.