@@ -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(); |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function hincrby($key, $field, $increment = 1) |
269 | 269 | { |
270 | - return $this->driver->hincrby($key, $field, (int)$increment); |
|
270 | + return $this->driver->hincrby($key, $field, (int) $increment); |
|
271 | 271 | } |
272 | 272 | |
273 | 273 | /** |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | */ |
311 | 311 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
312 | 312 | { |
313 | - if ((string)$iterator === '0') { |
|
313 | + if ((string) $iterator === '0') { |
|
314 | 314 | return null; |
315 | 315 | } |
316 | 316 | $this->init(); |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | */ |
372 | 372 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
373 | 373 | { |
374 | - if ((string)$iterator === '0') { |
|
374 | + if ((string) $iterator === '0') { |
|
375 | 375 | return null; |
376 | 376 | } |
377 | 377 | $this->init(); |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | */ |
395 | 395 | public function zscan($key, &$iterator, $pattern = null, $count = null) |
396 | 396 | { |
397 | - if ((string)$iterator === '0') { |
|
397 | + if ((string) $iterator === '0') { |
|
398 | 398 | return null; |
399 | 399 | } |
400 | 400 | $this->init(); |
@@ -429,10 +429,10 @@ discard block |
||
429 | 429 | */ |
430 | 430 | private function prepareKeyValue(array $dictionary, $command) |
431 | 431 | { |
432 | - $keys = array_values(array_filter($dictionary, function ($key) { |
|
432 | + $keys = array_values(array_filter($dictionary, function($key) { |
|
433 | 433 | return $key % 2 == 0; |
434 | 434 | }, ARRAY_FILTER_USE_KEY)); |
435 | - $values = array_values(array_filter($dictionary, function ($key) { |
|
435 | + $values = array_values(array_filter($dictionary, function($key) { |
|
436 | 436 | return $key % 2 == 1; |
437 | 437 | }, ARRAY_FILTER_USE_KEY)); |
438 | 438 |