Passed
Push — master ( 45ae24...56eb71 )
by Shiyu
02:52
created
src/Powered/Swoole/Chips/Socket.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         // -- message event
90 90
 
91
-        $http->on('message', static function (SWHClient $c, SWSFrame $f) use ($framing, $socket) {
91
+        $http->on('message', static function(SWHClient $c, SWSFrame $f) use ($framing, $socket) {
92 92
             switch ($f->opcode) {
93 93
                 case WSOpcode::CLOSING:
94 94
                     $socket->status(false);
@@ -99,20 +99,20 @@  discard block
 block discarded – undo
99 99
             }
100 100
         });
101 101
 
102
-        $http->on('close', static function (SWHClient $c) use ($framing, $socket) {
102
+        $http->on('close', static function(SWHClient $c) use ($framing, $socket) {
103 103
             $socket->status(false);
104 104
             $framing->message()->close();
105 105
         });
106 106
 
107 107
         // -- socket dial
108 108
 
109
-        $connector = function ($fn) use ($http, $request) {
109
+        $connector = function($fn) use ($http, $request) {
110 110
             $http->upgrade($this->getUriPath($request->getUri()), $fn);
111 111
         };
112 112
 
113 113
         // -- socket resp
114 114
 
115
-        $response = function (SWHClient $c) use ($request, $framing, $socket) {
115
+        $response = function(SWHClient $c) use ($request, $framing, $socket) {
116 116
             $code = $c->statusCode;
117 117
 
118 118
             if ($code === 101) {
Please login to merge, or discard this patch.