Completed
Pull Request — master (#5)
by Michal
02:18
created
src/RedisProxy.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      */
308 308
     public function scan(&$iterator, $pattern = null, $count = null)
309 309
     {
310
-        if ((string)$iterator === '0') {
310
+        if ((string) $iterator === '0') {
311 311
             return null;
312 312
         }
313 313
         $this->init();
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
     public function hincrby($key, $field, $increment = 1)
356 356
     {
357 357
         $this->init();
358
-        return $this->driver->hincrby($key, $field, (int)$increment);
358
+        return $this->driver->hincrby($key, $field, (int) $increment);
359 359
     }
360 360
 
361 361
     /**
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
      */
418 418
     public function hscan($key, &$iterator, $pattern = null, $count = null)
419 419
     {
420
-        if ((string)$iterator === '0') {
420
+        if ((string) $iterator === '0') {
421 421
             return null;
422 422
         }
423 423
         $this->init();
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
      */
478 478
     public function sscan($key, &$iterator, $pattern = null, $count = null)
479 479
     {
480
-        if ((string)$iterator === '0') {
480
+        if ((string) $iterator === '0') {
481 481
             return null;
482 482
         }
483 483
         $this->init();
@@ -584,10 +584,10 @@  discard block
 block discarded – undo
584 584
      */
585 585
     private function prepareKeyValue(array $dictionary, $command)
586 586
     {
587
-        $keys = array_values(array_filter($dictionary, function ($key) {
587
+        $keys = array_values(array_filter($dictionary, function($key) {
588 588
             return $key % 2 == 0;
589 589
         }, ARRAY_FILTER_USE_KEY));
590
-        $values = array_values(array_filter($dictionary, function ($key) {
590
+        $values = array_values(array_filter($dictionary, function($key) {
591 591
             return $key % 2 == 1;
592 592
         }, ARRAY_FILTER_USE_KEY));
593 593
 
Please login to merge, or discard this patch.