@@ -285,7 +285,7 @@ |
||
285 | 285 | * Increment the float value of hash field by given amount |
286 | 286 | * @param string $key |
287 | 287 | * @param string $field |
288 | - * @param float $increment |
|
288 | + * @param integer $increment |
|
289 | 289 | * @return float |
290 | 290 | */ |
291 | 291 | public function hincrbyfloat($key, $field, $increment = 1) |
@@ -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 |