@@ -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) |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | * Increment the float value of hash field by given amount |
| 398 | 398 | * @param string $key |
| 399 | 399 | * @param string $field |
| 400 | - * @param float $increment |
|
| 400 | + * @param integer $increment |
|
| 401 | 401 | * @return float |
| 402 | 402 | */ |
| 403 | 403 | public function hincrbyfloat($key, $field, $increment = 1) |
@@ -632,6 +632,9 @@ discard block |
||
| 632 | 632 | return array_combine($keys, $values); |
| 633 | 633 | } |
| 634 | 634 | |
| 635 | + /** |
|
| 636 | + * @param string $command |
|
| 637 | + */ |
|
| 635 | 638 | private function prepareArguments($command, ...$params) |
| 636 | 639 | { |
| 637 | 640 | if (!isset($params[0])) { |
@@ -284,7 +284,7 @@ discard block |
||
| 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 | /** |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | */ |
| 343 | 343 | public function scan(&$iterator, $pattern = null, $count = null) |
| 344 | 344 | { |
| 345 | - if ((string)$iterator === '0') { |
|
| 345 | + if ((string) $iterator === '0') { |
|
| 346 | 346 | return null; |
| 347 | 347 | } |
| 348 | 348 | $this->init(); |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | public function hincrby($key, $field, $increment = 1) |
| 391 | 391 | { |
| 392 | 392 | $this->init(); |
| 393 | - return $this->driver->hincrby($key, $field, (int)$increment); |
|
| 393 | + return $this->driver->hincrby($key, $field, (int) $increment); |
|
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | /** |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | */ |
| 453 | 453 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
| 454 | 454 | { |
| 455 | - if ((string)$iterator === '0') { |
|
| 455 | + if ((string) $iterator === '0') { |
|
| 456 | 456 | return null; |
| 457 | 457 | } |
| 458 | 458 | $this->init(); |
@@ -512,7 +512,7 @@ discard block |
||
| 512 | 512 | */ |
| 513 | 513 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
| 514 | 514 | { |
| 515 | - if ((string)$iterator === '0') { |
|
| 515 | + if ((string) $iterator === '0') { |
|
| 516 | 516 | return null; |
| 517 | 517 | } |
| 518 | 518 | $this->init(); |
@@ -619,10 +619,10 @@ discard block |
||
| 619 | 619 | */ |
| 620 | 620 | private function prepareKeyValue(array $dictionary, $command) |
| 621 | 621 | { |
| 622 | - $keys = array_values(array_filter($dictionary, function ($key) { |
|
| 622 | + $keys = array_values(array_filter($dictionary, function($key) { |
|
| 623 | 623 | return $key % 2 == 0; |
| 624 | 624 | }, ARRAY_FILTER_USE_KEY)); |
| 625 | - $values = array_values(array_filter($dictionary, function ($key) { |
|
| 625 | + $values = array_values(array_filter($dictionary, function($key) { |
|
| 626 | 626 | return $key % 2 == 1; |
| 627 | 627 | }, ARRAY_FILTER_USE_KEY)); |
| 628 | 628 | |