Completed
Pull Request — master (#5)
by Michal
02:20
created
src/RedisProxy.php 2 patches
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     /**
291 291
      * Increment the float value of a key by the given amount
292 292
      * @param string $key
293
-     * @param float $increment
293
+     * @param integer $increment
294 294
      * @return float
295 295
      */
296 296
     public function incrbyfloat($key, $increment = 1)
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     /**
326 326
      * Decrement the float value of a key by the given amount
327 327
      * @param string $key
328
-     * @param float $decrement
328
+     * @param integer $decrement
329 329
      * @return float
330 330
      */
331 331
     public function decrbyfloat($key, $decrement = 1)
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
      * Increment the float value of hash field by given amount
432 432
      * @param string $key
433 433
      * @param string $field
434
-     * @param float $increment
434
+     * @param integer $increment
435 435
      * @return float
436 436
      */
437 437
     public function hincrbyfloat($key, $field, $increment = 1)
@@ -666,6 +666,9 @@  discard block
 block discarded – undo
666 666
         return array_combine($keys, $values);
667 667
     }
668 668
 
669
+    /**
670
+     * @param string $command
671
+     */
669 672
     private function prepareArguments($command, ...$params)
670 673
     {
671 674
         if (!isset($params[0])) {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     public function incrby($key, $increment = 1)
285 285
     {
286 286
         $this->init();
287
-        return $this->driver->incrby($key, (int)$increment);
287
+        return $this->driver->incrby($key, (int) $increment);
288 288
     }
289 289
 
290 290
     /**
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     public function decrby($key, $decrement = 1)
320 320
     {
321 321
         $this->init();
322
-        return $this->driver->decrby($key, (int)$decrement);
322
+        return $this->driver->decrby($key, (int) $decrement);
323 323
     }
324 324
 
325 325
     /**
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      */
377 377
     public function scan(&$iterator, $pattern = null, $count = null)
378 378
     {
379
-        if ((string)$iterator === '0') {
379
+        if ((string) $iterator === '0') {
380 380
             return null;
381 381
         }
382 382
         $this->init();
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
     public function hincrby($key, $field, $increment = 1)
425 425
     {
426 426
         $this->init();
427
-        return $this->driver->hincrby($key, $field, (int)$increment);
427
+        return $this->driver->hincrby($key, $field, (int) $increment);
428 428
     }
429 429
 
430 430
     /**
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
      */
487 487
     public function hscan($key, &$iterator, $pattern = null, $count = null)
488 488
     {
489
-        if ((string)$iterator === '0') {
489
+        if ((string) $iterator === '0') {
490 490
             return null;
491 491
         }
492 492
         $this->init();
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      */
547 547
     public function sscan($key, &$iterator, $pattern = null, $count = null)
548 548
     {
549
-        if ((string)$iterator === '0') {
549
+        if ((string) $iterator === '0') {
550 550
             return null;
551 551
         }
552 552
         $this->init();
@@ -653,10 +653,10 @@  discard block
 block discarded – undo
653 653
      */
654 654
     private function prepareKeyValue(array $dictionary, $command)
655 655
     {
656
-        $keys = array_values(array_filter($dictionary, function ($key) {
656
+        $keys = array_values(array_filter($dictionary, function($key) {
657 657
             return $key % 2 == 0;
658 658
         }, ARRAY_FILTER_USE_KEY));
659
-        $values = array_values(array_filter($dictionary, function ($key) {
659
+        $values = array_values(array_filter($dictionary, function($key) {
660 660
             return $key % 2 == 1;
661 661
         }, ARRAY_FILTER_USE_KEY));
662 662
 
Please login to merge, or discard this patch.