@@ -290,7 +290,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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])) { |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | { |
272 | 272 | $this->init(); |
273 | 273 | $result = $this->driver->expire($key, $seconds); |
274 | - return (bool)$result; |
|
274 | + return (bool) $result; |
|
275 | 275 | } |
276 | 276 | |
277 | 277 | /** |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | { |
285 | 285 | $this->init(); |
286 | 286 | $result = $this->driver->setnx($key, $value); |
287 | - return (bool)$result; |
|
287 | + return (bool) $result; |
|
288 | 288 | } |
289 | 289 | |
290 | 290 | /** |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | public function incrby($key, $increment = 1) |
330 | 330 | { |
331 | 331 | $this->init(); |
332 | - return $this->driver->incrby($key, (int)$increment); |
|
332 | + return $this->driver->incrby($key, (int) $increment); |
|
333 | 333 | } |
334 | 334 | |
335 | 335 | /** |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | public function decrby($key, $decrement = 1) |
365 | 365 | { |
366 | 366 | $this->init(); |
367 | - return $this->driver->decrby($key, (int)$decrement); |
|
367 | + return $this->driver->decrby($key, (int) $decrement); |
|
368 | 368 | } |
369 | 369 | |
370 | 370 | /** |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | */ |
422 | 422 | public function scan(&$iterator, $pattern = null, $count = null) |
423 | 423 | { |
424 | - if ((string)$iterator === '0') { |
|
424 | + if ((string) $iterator === '0') { |
|
425 | 425 | return null; |
426 | 426 | } |
427 | 427 | $this->init(); |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | public function hincrby($key, $field, $increment = 1) |
470 | 470 | { |
471 | 471 | $this->init(); |
472 | - return $this->driver->hincrby($key, $field, (int)$increment); |
|
472 | + return $this->driver->hincrby($key, $field, (int) $increment); |
|
473 | 473 | } |
474 | 474 | |
475 | 475 | /** |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | */ |
532 | 532 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
533 | 533 | { |
534 | - if ((string)$iterator === '0') { |
|
534 | + if ((string) $iterator === '0') { |
|
535 | 535 | return null; |
536 | 536 | } |
537 | 537 | $this->init(); |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | */ |
592 | 592 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
593 | 593 | { |
594 | - if ((string)$iterator === '0') { |
|
594 | + if ((string) $iterator === '0') { |
|
595 | 595 | return null; |
596 | 596 | } |
597 | 597 | $this->init(); |
@@ -752,10 +752,10 @@ discard block |
||
752 | 752 | */ |
753 | 753 | private function prepareKeyValue(array $dictionary, $command) |
754 | 754 | { |
755 | - $keys = array_values(array_filter($dictionary, function ($key) { |
|
755 | + $keys = array_values(array_filter($dictionary, function($key) { |
|
756 | 756 | return $key % 2 == 0; |
757 | 757 | }, ARRAY_FILTER_USE_KEY)); |
758 | - $values = array_values(array_filter($dictionary, function ($key) { |
|
758 | + $values = array_values(array_filter($dictionary, function($key) { |
|
759 | 759 | return $key % 2 == 1; |
760 | 760 | }, ARRAY_FILTER_USE_KEY)); |
761 | 761 |