@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function setRedis(?RedisClient $redis = null) |
59 | 59 | { |
60 | - if (! $redis) { |
|
60 | + if (!$redis) { |
|
61 | 61 | $server = Arr::get($this->config, 'server', []); |
62 | 62 | $options = Arr::get($this->config, 'options', []); |
63 | 63 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $this->checkTable($table); |
140 | 140 | $redisKey = $this->getKey($key, $table); |
141 | 141 | |
142 | - $this->redis->pipeline(function (Pipeline $pipe) use ($redisKey, $values) { |
|
142 | + $this->redis->pipeline(function(Pipeline $pipe) use ($redisKey, $values) { |
|
143 | 143 | foreach ($values as $value) { |
144 | 144 | $pipe->sadd($redisKey, $value); |
145 | 145 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $this->checkTable($table); |
163 | 163 | $redisKey = $this->getKey($key, $table); |
164 | 164 | |
165 | - $this->redis->pipeline(function (Pipeline $pipe) use ($redisKey, $values) { |
|
165 | + $this->redis->pipeline(function(Pipeline $pipe) use ($redisKey, $values) { |
|
166 | 166 | foreach ($values as $value) { |
167 | 167 | $pipe->srem($redisKey, $value); |
168 | 168 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | protected function checkTable(string $table) |
204 | 204 | { |
205 | - if (! in_array($table, [RoomContract::ROOMS_KEY, RoomContract::DESCRIPTORS_KEY])) { |
|
205 | + if (!in_array($table, [RoomContract::ROOMS_KEY, RoomContract::DESCRIPTORS_KEY])) { |
|
206 | 206 | throw new \InvalidArgumentException("Invalid table name: `{$table}`."); |
207 | 207 | } |
208 | 208 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | foreach ($rooms as $room) { |
88 | 88 | $fds = $this->getClients($room); |
89 | 89 | |
90 | - if (! in_array($fd, $fds)) { |
|
90 | + if (!in_array($fd, $fds)) { |
|
91 | 91 | continue; |
92 | 92 | } |
93 | 93 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | */ |
207 | 207 | protected function checkTable(string $table) |
208 | 208 | { |
209 | - if (! property_exists($this, $table) || ! $this->$table instanceof Table) { |
|
209 | + if (!property_exists($this, $table) || !$this->$table instanceof Table) { |
|
210 | 210 | throw new \InvalidArgumentException("Invalid table name: `{$table}`."); |
211 | 211 | } |
212 | 212 | } |