@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | public function scan(&$iterator, $pattern = null, $count = null) |
| 220 | 220 | { |
| 221 | - if ((string)$iterator === '0') { |
|
| 221 | + if ((string) $iterator === '0') { |
|
| 222 | 222 | return null; |
| 223 | 223 | } |
| 224 | 224 | $this->init(); |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | */ |
| 267 | 267 | public function hincrby($key, $field, $increment = 1) |
| 268 | 268 | { |
| 269 | - return $this->driver->hincrby($key, $field, (int)$increment); |
|
| 269 | + return $this->driver->hincrby($key, $field, (int) $increment); |
|
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | /** |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | */ |
| 310 | 310 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
| 311 | 311 | { |
| 312 | - if ((string)$iterator === '0') { |
|
| 312 | + if ((string) $iterator === '0') { |
|
| 313 | 313 | return null; |
| 314 | 314 | } |
| 315 | 315 | $this->init(); |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | */ |
| 370 | 370 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
| 371 | 371 | { |
| 372 | - if ((string)$iterator === '0') { |
|
| 372 | + if ((string) $iterator === '0') { |
|
| 373 | 373 | return null; |
| 374 | 374 | } |
| 375 | 375 | $this->init(); |
@@ -403,10 +403,10 @@ discard block |
||
| 403 | 403 | */ |
| 404 | 404 | private function prepareKeyValue(array $dictionary, $command) |
| 405 | 405 | { |
| 406 | - $keys = array_values(array_filter($dictionary, function ($key) { |
|
| 406 | + $keys = array_values(array_filter($dictionary, function($key) { |
|
| 407 | 407 | return $key % 2 == 0; |
| 408 | 408 | }, ARRAY_FILTER_USE_KEY)); |
| 409 | - $values = array_values(array_filter($dictionary, function ($key) { |
|
| 409 | + $values = array_values(array_filter($dictionary, function($key) { |
|
| 410 | 410 | return $key % 2 == 1; |
| 411 | 411 | }, ARRAY_FILTER_USE_KEY)); |
| 412 | 412 | |
@@ -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])) { |