@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * Increment the float value of hash field by given amount |
314 | 314 | * @param string $key |
315 | 315 | * @param string $field |
316 | - * @param float $increment |
|
316 | + * @param integer $increment |
|
317 | 317 | * @return float |
318 | 318 | */ |
319 | 319 | public function hincrbyfloat($key, $field, $increment = 1) |
@@ -475,6 +475,9 @@ discard block |
||
475 | 475 | return array_combine($keys, $values); |
476 | 476 | } |
477 | 477 | |
478 | + /** |
|
479 | + * @param string $command |
|
480 | + */ |
|
478 | 481 | private function prepareArguments($command, ...$params) |
479 | 482 | { |
480 | 483 | if (!isset($params[0])) { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | */ |
308 | 308 | public function scan(&$iterator, $pattern = null, $count = null) |
309 | 309 | { |
310 | - if ((string)$iterator === '0') { |
|
310 | + if ((string) $iterator === '0') { |
|
311 | 311 | return null; |
312 | 312 | } |
313 | 313 | $this->init(); |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | public function hincrby($key, $field, $increment = 1) |
356 | 356 | { |
357 | 357 | $this->init(); |
358 | - return $this->driver->hincrby($key, $field, (int)$increment); |
|
358 | + return $this->driver->hincrby($key, $field, (int) $increment); |
|
359 | 359 | } |
360 | 360 | |
361 | 361 | /** |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | */ |
418 | 418 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
419 | 419 | { |
420 | - if ((string)$iterator === '0') { |
|
420 | + if ((string) $iterator === '0') { |
|
421 | 421 | return null; |
422 | 422 | } |
423 | 423 | $this->init(); |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | */ |
478 | 478 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
479 | 479 | { |
480 | - if ((string)$iterator === '0') { |
|
480 | + if ((string) $iterator === '0') { |
|
481 | 481 | return null; |
482 | 482 | } |
483 | 483 | $this->init(); |
@@ -584,10 +584,10 @@ discard block |
||
584 | 584 | */ |
585 | 585 | private function prepareKeyValue(array $dictionary, $command) |
586 | 586 | { |
587 | - $keys = array_values(array_filter($dictionary, function ($key) { |
|
587 | + $keys = array_values(array_filter($dictionary, function($key) { |
|
588 | 588 | return $key % 2 == 0; |
589 | 589 | }, ARRAY_FILTER_USE_KEY)); |
590 | - $values = array_values(array_filter($dictionary, function ($key) { |
|
590 | + $values = array_values(array_filter($dictionary, function($key) { |
|
591 | 591 | return $key % 2 == 1; |
592 | 592 | }, ARRAY_FILTER_USE_KEY)); |
593 | 593 |