Completed
Pull Request — master (#2)
by Michal
02:02
created
src/RedisProxy.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
285 285
      * Increment the float value of hash field by given amount
286 286
      * @param string $key
287 287
      * @param string $field
288
-     * @param float $increment
288
+     * @param integer $increment
289 289
      * @return float
290 290
      */
291 291
     public function hincrbyfloat($key, $field, $increment = 1)
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
             return $this->transformResult($result);
174 174
         }
175 175
 
176
-        $keys = array_values(array_filter($dictionary, function ($key) {
176
+        $keys = array_values(array_filter($dictionary, function($key) {
177 177
             return $key % 2 == 0;
178 178
         }, ARRAY_FILTER_USE_KEY));
179
-        $values = array_values(array_filter($dictionary, function ($key) {
179
+        $values = array_values(array_filter($dictionary, function($key) {
180 180
             return $key % 2 == 1;
181 181
         }, ARRAY_FILTER_USE_KEY));
182 182
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      */
231 231
     public function scan(&$iterator, $pattern = null, $count = null)
232 232
     {
233
-        if ((string)$iterator === '0') {
233
+        if ((string) $iterator === '0') {
234 234
             return null;
235 235
         }
236 236
         $this->init();
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      */
279 279
     public function hincrby($key, $field, $increment = 1)
280 280
     {
281
-        return $this->driver->hincrby($key, $field, (int)$increment);
281
+        return $this->driver->hincrby($key, $field, (int) $increment);
282 282
     }
283 283
 
284 284
     /**
@@ -307,10 +307,10 @@  discard block
 block discarded – undo
307 307
             return $this->transformResult($result);
308 308
         }
309 309
 
310
-        $fields = array_values(array_filter($dictionary, function ($dictionaryKey) {
310
+        $fields = array_values(array_filter($dictionary, function($dictionaryKey) {
311 311
             return $dictionaryKey % 2 == 0;
312 312
         }, ARRAY_FILTER_USE_KEY));
313
-        $values = array_values(array_filter($dictionary, function ($dictionaryKey) {
313
+        $values = array_values(array_filter($dictionary, function($dictionaryKey) {
314 314
             return $dictionaryKey % 2 == 1;
315 315
         }, ARRAY_FILTER_USE_KEY));
316 316
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
      */
334 334
     public function hscan($key, &$iterator, $pattern = null, $count = null)
335 335
     {
336
-        if ((string)$iterator === '0') {
336
+        if ((string) $iterator === '0') {
337 337
             return null;
338 338
         }
339 339
         $this->init();
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      */
394 394
     public function sscan($key, &$iterator, $pattern = null, $count = null)
395 395
     {
396
-        if ((string)$iterator === '0') {
396
+        if ((string) $iterator === '0') {
397 397
             return null;
398 398
         }
399 399
         $this->init();
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
      */
416 416
     public function zscan($key, &$iterator, $pattern = null, $count = null)
417 417
     {
418
-        if ((string)$iterator === '0') {
418
+        if ((string) $iterator === '0') {
419 419
             return null;
420 420
         }
421 421
         $this->init();
Please login to merge, or discard this patch.