Passed
Pull Request — master (#378)
by Bill
07:55 queued 05:18
created
src/Websocket/Rooms/RedisRoom.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.