Completed
Push — master ( 9a1e57...9eab6b )
by Kamil
02:30
created
src/Redis/Redis.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         // TODO patch missing pub/sub, pipeline, auth
145 145
         $this->handleStart();
146
-        $this->emit('start', [ $this ]);
146
+        $this->emit('start', [$this]);
147 147
 
148 148
         return true;
149 149
     }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
          // TODO patch missing pub/sub, pipeline, auth
176 176
         $this->handleStop();
177
-        $this->emit('stop', [ $this ]);
177
+        $this->emit('stop', [$this]);
178 178
 
179 179
         return true;
180 180
     }
@@ -226,8 +226,8 @@  discard block
 block discarded – undo
226 226
     {
227 227
         if ($this->stream !== null)
228 228
         {
229
-            $this->stream->on('data', [ $this, 'handleData' ]);
230
-            $this->stream->on('close', [ $this, 'stop' ]);
229
+            $this->stream->on('data', [$this, 'handleData']);
230
+            $this->stream->on('close', [$this, 'stop']);
231 231
         }
232 232
     }
233 233
 
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
     {
239 239
         if ($this->stream !== null)
240 240
         {
241
-            $this->stream->removeListener('data', [ $this, 'handleData' ]);
242
-            $this->stream->removeListener('close', [ $this, 'stop' ]);
241
+            $this->stream->removeListener('data', [$this, 'handleData']);
242
+            $this->stream->removeListener('close', [$this, 'stop']);
243 243
         }
244 244
     }
245 245
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         }
257 257
         catch (ParserException $error)
258 258
         {
259
-            $this->emit('error', [ $this, $error ]);
259
+            $this->emit('error', [$this, $error]);
260 260
             $this->stop();
261 261
             return;
262 262
         }
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
             }
270 270
             catch (UnderflowException $error)
271 271
             {
272
-                $this->emit('error', [ $this, $error ]);
272
+                $this->emit('error', [$this, $error]);
273 273
                 $this->stop();
274 274
                 return;
275 275
             }
Please login to merge, or discard this patch.
src/Redis/Command/Api/ApiConnInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      * @param string $message
19 19
      * @return mixed
20 20
      */
21
-    public function ping($message='pong');
21
+    public function ping($message = 'pong');
22 22
 
23 23
     /**
24 24
      * @doc https://redis.io/commands/quit
Please login to merge, or discard this patch.
src/Redis/Command/Api/ApiSetInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      * @param array $args
38 38
      * @return mixed
39 39
      */
40
-    public function sLowLog($command, array $args=[]);
40
+    public function sLowLog($command, array $args = []);
41 41
 
42 42
     /**
43 43
      * @doc https://redis.io/commands/smembers
Please login to merge, or discard this patch.
src/Redis/Command/Api/ApiKeyValInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param int $end
22 22
      * @return mixed
23 23
      */
24
-    public function bitCount($key, $start=0, $end=0);
24
+    public function bitCount($key, $start = 0, $end = 0);
25 25
 
26 26
     /**
27 27
      * @doc https://redis.io/commands/bitfield
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param int $end
53 53
      * @return mixed
54 54
      */
55
-    public function bitPos($key, $bit, $start=0, $end=0);
55
+    public function bitPos($key, $bit, $start = 0, $end = 0);
56 56
 
57 57
     /**
58 58
      * @doc https://redis.io/commands/decr
Please login to merge, or discard this patch.
src/Redis/Command/Compose/ApiSetHashTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,13 +48,13 @@
 block discarded – undo
48 48
         $command = Enum::HGETALL;
49 49
         $args = [$key];
50 50
 
51
-        return $this->dispatch(Builder::build($command, $args))->then(function ($value) {
51
+        return $this->dispatch(Builder::build($command, $args))->then(function($value) {
52 52
             if (!empty($value)) {
53 53
                 $tmp = [];
54 54
                 $size = count($value);
55
-                for ($i=0; $i<$size; $i+=2) {
55
+                for ($i = 0; $i < $size; $i += 2) {
56 56
                     $field = $value[$i];
57
-                    $val = $value[$i+1];
57
+                    $val = $value[$i + 1];
58 58
                     $tmp[$field] = $val;
59 59
                 }
60 60
                 $value = $tmp;
Please login to merge, or discard this patch.
src/Redis/Command/Compose/ApiGeospatialTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     {
61 61
         // TODO: Implement geoDist() method.
62 62
         $command = Enum::GEODIST;
63
-        $args = [$key, $memberA, $memberB ,$unit];
63
+        $args = [$key, $memberA, $memberB, $unit];
64 64
 
65 65
         return $this->dispatch(Builder::build($command, $args));
66 66
     }
Please login to merge, or discard this patch.
src/Redis/Command/Compose/ApiKeyValTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
      * @override
348 348
      * @inheritDoc
349 349
      */
350
-    public function del($key,...$keys)
350
+    public function del($key, ...$keys)
351 351
     {
352 352
         $command = Enum::DEL;
353 353
         $keys[] = $key;
Please login to merge, or discard this patch.
src/Redis/Command/Compose/ApiSetSortedTrait.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         // TODO: Implement zRange() method.
103 103
         $command = Enum::ZRANGE;
104
-        $args = [$key, $star,$stop];
104
+        $args = [$key, $star, $stop];
105 105
         $args = array_merge($args, $options);
106 106
 
107 107
         return $this->dispatch(Builder::build($command, $args));
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         // TODO: Implement zRangeByLex() method.
117 117
         $command = Enum::ZRANGEBYLEX;
118 118
         $args = [$key, $min, $max];
119
-        $args = array_merge($args,$options);
119
+        $args = array_merge($args, $options);
120 120
 
121 121
         return $this->dispatch(Builder::build($command, $args));
122 122
     }
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
     {
130 130
         // TODO: Implement zRevRangeByLex() method.
131 131
         $command = Enum::ZREVRANGEBYLEX;
132
-        $args = [$key, $max,$min];
133
-        $args = array_merge($args,$options);
132
+        $args = [$key, $max, $min];
133
+        $args = array_merge($args, $options);
134 134
 
135 135
         return $this->dispatch(Builder::build($command, $args));
136 136
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     {
144 144
         // TODO: Implement zRangeByScore() method.
145 145
         $command = Enum::ZRANGEBYSCORE;
146
-        $args = [$key, $min,$max];
146
+        $args = [$key, $min, $max];
147 147
         $args = array_merge($args, $options);
148 148
 
149 149
         return $this->dispatch(Builder::build($command, $args));
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         // TODO: Implement zRank() method.
159 159
         $command = Enum::ZRANK;
160
-        $args = [$key,$member];
160
+        $args = [$key, $member];
161 161
 
162 162
         return $this->dispatch(Builder::build($command, $args));
163 163
     }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     {
198 198
         // TODO: Implement zRemRangeByRank() method.
199 199
         $command = Enum::ZREMRANGEBYRANK;
200
-        $args = [$key, $start,$stop];
200
+        $args = [$key, $start, $stop];
201 201
 
202 202
         return $this->dispatch(Builder::build($command, $args));
203 203
     }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     {
238 238
         // TODO: Implement zRevRangeByScore() method.
239 239
         $command = Enum::ZREVRANGEBYSCORE;
240
-        $args = [$key,$max,$min];
240
+        $args = [$key, $max, $min];
241 241
         $args = array_merge($args, $options);
242 242
 
243 243
         return $this->dispatch(Builder::build($command, $args));
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     {
252 252
         // TODO: Implement zRevRank() method.
253 253
         $command = Enum::ZREVRANK;
254
-        $args = [$key,$member];
254
+        $args = [$key, $member];
255 255
 
256 256
         return $this->dispatch(Builder::build($command, $args));
257 257
     }
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     {
265 265
         // TODO: Implement zScore() method.
266 266
         $command = Enum::ZSCORE;
267
-        $args = [$key,$member];
267
+        $args = [$key, $member];
268 268
 
269 269
         return $this->dispatch(Builder::build($command, $args));
270 270
     }
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
     {
278 278
         // TODO: Implement zScan() method.
279 279
         $command = Enum::ZSCAN;
280
-        $args = [$key , $cursor];
280
+        $args = [$key, $cursor];
281 281
         $args = array_merge($args, $options);
282 282
 
283 283
         return $this->dispatch(Builder::build($command, $args));
Please login to merge, or discard this patch.
src/Redis/Command/Compose/ApiSetTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         // TODO: Implement sIsMember() method.
65 65
         $command = Enum::SISMEMBER;
66
-        $args = [$key ,$member];
66
+        $args = [$key, $member];
67 67
 
68 68
         return $this->dispatch(Builder::build($command, $args));
69 69
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         // TODO: Implement sLowLog() method.
78 78
         $command = Enum::SLOWLOG;
79
-        $args = array_merge([$command],$args);
79
+        $args = array_merge([$command], $args);
80 80
 
81 81
         return $this->dispatch(Builder::build($command, $args));
82 82
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         // TODO: Implement sMove() method.
104 104
         $command = Enum::SMOVE;
105 105
         $args = [$src, $dst];
106
-        $args = array_merge( $args, $members);
106
+        $args = array_merge($args, $members);
107 107
 
108 108
         return $this->dispatch(Builder::build($command, $args));
109 109
     }
Please login to merge, or discard this patch.