Passed
Branch master (681088)
by Shiyu
02:18
created
Category
src/Powered/Swoole/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      */
143 143
     public function send(string $data, int $conn = 0) : bool
144 144
     {
145
-        return $this->connected($conn) ? !! $this->client->send($data) : false;
145
+        return $this->connected($conn) ? !!$this->client->send($data) : false;
146 146
     }
147 147
 
148 148
     /**
Please login to merge, or discard this patch.
src/Powered/Swoole/Chips/Buffered.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
 
67 67
         ($this->waits[$conn] ?? $this->waits[$conn] = Promise::deferred())
68
-            ->then(function (object $sock, int $conn) use ($do) {
68
+            ->then(function(object $sock, int $conn) use ($do) {
69 69
                 /**
70 70
                  * @var static $sock
71 71
                  */
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function write(string $data, int $conn = 0) : bool
86 86
     {
87
-        return $this->ifWritable(static function (TCP $sock, int $conn) use ($data) {
87
+        return $this->ifWritable(static function(TCP $sock, int $conn) use ($data) {
88 88
             return $sock->send($data, $conn);
89 89
         }, $conn);
90 90
     }
Please login to merge, or discard this patch.