@@ -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->setnx($key, $value); |
287 | - return (bool)$result; |
|
287 | + return (bool) $result; |
|
288 | 288 | } |
289 | 289 | |
290 | 290 | /** |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | public function incrby($key, $increment = 1) |
330 | 330 | { |
331 | 331 | $this->init(); |
332 | - return $this->driver->incrby($key, (int)$increment); |
|
332 | + return $this->driver->incrby($key, (int) $increment); |
|
333 | 333 | } |
334 | 334 | |
335 | 335 | /** |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | public function decrby($key, $decrement = 1) |
365 | 365 | { |
366 | 366 | $this->init(); |
367 | - return $this->driver->decrby($key, (int)$decrement); |
|
367 | + return $this->driver->decrby($key, (int) $decrement); |
|
368 | 368 | } |
369 | 369 | |
370 | 370 | /** |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | */ |
422 | 422 | public function scan(&$iterator, $pattern = null, $count = null) |
423 | 423 | { |
424 | - if ((string)$iterator === '0') { |
|
424 | + if ((string) $iterator === '0') { |
|
425 | 425 | return null; |
426 | 426 | } |
427 | 427 | $this->init(); |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | public function hincrby($key, $field, $increment = 1) |
470 | 470 | { |
471 | 471 | $this->init(); |
472 | - return $this->driver->hincrby($key, $field, (int)$increment); |
|
472 | + return $this->driver->hincrby($key, $field, (int) $increment); |
|
473 | 473 | } |
474 | 474 | |
475 | 475 | /** |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | */ |
532 | 532 | public function hscan($key, &$iterator, $pattern = null, $count = null) |
533 | 533 | { |
534 | - if ((string)$iterator === '0') { |
|
534 | + if ((string) $iterator === '0') { |
|
535 | 535 | return null; |
536 | 536 | } |
537 | 537 | $this->init(); |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | */ |
592 | 592 | public function sscan($key, &$iterator, $pattern = null, $count = null) |
593 | 593 | { |
594 | - if ((string)$iterator === '0') { |
|
594 | + if ((string) $iterator === '0') { |
|
595 | 595 | return null; |
596 | 596 | } |
597 | 597 | $this->init(); |
@@ -752,10 +752,10 @@ discard block |
||
752 | 752 | */ |
753 | 753 | private function prepareKeyValue(array $dictionary, $command) |
754 | 754 | { |
755 | - $keys = array_values(array_filter($dictionary, function ($key) { |
|
755 | + $keys = array_values(array_filter($dictionary, function($key) { |
|
756 | 756 | return $key % 2 == 0; |
757 | 757 | }, ARRAY_FILTER_USE_KEY)); |
758 | - $values = array_values(array_filter($dictionary, function ($key) { |
|
758 | + $values = array_values(array_filter($dictionary, function($key) { |
|
759 | 759 | return $key % 2 == 1; |
760 | 760 | }, ARRAY_FILTER_USE_KEY)); |
761 | 761 |