@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $this->checkTable($table); |
| 103 | 103 | $redisKey = $this->getKey($key, $table); |
| 104 | 104 | |
| 105 | - $this->connection()->pipeline(function ($pipe) use ($redisKey, $values) { |
|
| 105 | + $this->connection()->pipeline(function($pipe) use ($redisKey, $values) { |
|
| 106 | 106 | foreach ($values as $value) { |
| 107 | 107 | $pipe->sadd($redisKey, $value); |
| 108 | 108 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $this->checkTable($table); |
| 126 | 126 | $redisKey = $this->getKey($key, $table); |
| 127 | 127 | |
| 128 | - $this->connection()->pipeline(function ($pipe) use ($redisKey, $values) { |
|
| 128 | + $this->connection()->pipeline(function($pipe) use ($redisKey, $values) { |
|
| 129 | 129 | foreach ($values as $value) { |
| 130 | 130 | $pipe->srem($redisKey, $value); |
| 131 | 131 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | */ |
| 166 | 166 | protected function checkTable(string $table) |
| 167 | 167 | { |
| 168 | - if (! in_array($table, [RoomContract::ROOMS_KEY, RoomContract::DESCRIPTORS_KEY])) { |
|
| 168 | + if (!in_array($table, [RoomContract::ROOMS_KEY, RoomContract::DESCRIPTORS_KEY])) { |
|
| 169 | 169 | throw new \InvalidArgumentException("Invalid table name: `{$table}`."); |
| 170 | 170 | } |
| 171 | 171 | } |