@@ -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->expireat($key, $timestamp); |
287 | - return (bool)$result; |
|
287 | + return (bool) $result; |
|
288 | 288 | } |
289 | 289 | |
290 | 290 | /** |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | { |
298 | 298 | $this->init(); |
299 | 299 | $result = $this->driver->pexpireat($key, $timestamp); |
300 | - return (bool)$result; |
|
300 | + return (bool) $result; |
|
301 | 301 | } |
302 | 302 | |
303 | 303 | /** |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | { |
311 | 311 | $this->init(); |
312 | 312 | $result = $this->driver->setnx($key, $value); |
313 | - return (bool)$result; |
|
313 | + return (bool) $result; |
|
314 | 314 | } |
315 | 315 | |
316 | 316 | /** |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | public function incrby($key, $increment = 1) |
356 | 356 | { |
357 | 357 | $this->init(); |
358 | - return $this->driver->incrby($key, (int)$increment); |
|
358 | + return $this->driver->incrby($key, (int) $increment); |
|
359 | 359 | } |
360 | 360 | |
361 | 361 | /** |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | public function decrby($key, $decrement = 1) |
391 | 391 | { |
392 | 392 | $this->init(); |
393 | - return $this->driver->decrby($key, (int)$decrement); |
|
393 | + return $this->driver->decrby($key, (int) $decrement); |
|
394 | 394 | } |
395 | 395 | |
396 | 396 | /** |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | */ |
448 | 448 | public function scan(&$iterator, $pattern = null, $count = null) |
449 | 449 | { |
450 | - if ((string)$iterator === '0') { |
|
450 | + if ((string) $iterator === '0') { |
|
451 | 451 | return null; |
452 | 452 | } |
453 | 453 | $this->init(); |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | public function hincrby($key, $field, $increment = 1) |
496 | 496 | { |
497 | 497 | $this->init(); |
498 | - return $this->driver->hincrby($key, $field, (int)$increment); |
|
498 | + return $this->driver->hincrby($key, $field, (int) $increment); |
|
499 | 499 | } |
500 | 500 | |
501 | 501 | /** |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | */ |
558 | 558 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
559 | 559 | { |
560 | - if ((string)$iterator === '0') { |
|
560 | + if ((string) $iterator === '0') { |
|
561 | 561 | return null; |
562 | 562 | } |
563 | 563 | $this->init(); |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | */ |
618 | 618 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
619 | 619 | { |
620 | - if ((string)$iterator === '0') { |
|
620 | + if ((string) $iterator === '0') { |
|
621 | 621 | return null; |
622 | 622 | } |
623 | 623 | $this->init(); |
@@ -778,10 +778,10 @@ discard block |
||
778 | 778 | */ |
779 | 779 | private function prepareKeyValue(array $dictionary, $command) |
780 | 780 | { |
781 | - $keys = array_values(array_filter($dictionary, function ($key) { |
|
781 | + $keys = array_values(array_filter($dictionary, function($key) { |
|
782 | 782 | return $key % 2 == 0; |
783 | 783 | }, ARRAY_FILTER_USE_KEY)); |
784 | - $values = array_values(array_filter($dictionary, function ($key) { |
|
784 | + $values = array_values(array_filter($dictionary, function($key) { |
|
785 | 785 | return $key % 2 == 1; |
786 | 786 | }, ARRAY_FILTER_USE_KEY)); |
787 | 787 |