Completed
Pull Request — master (#5)
by Michal
02:05
created
src/RedisProxy.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     public function incrby($key, $increment = 1)
285 285
     {
286 286
         $this->init();
287
-        return $this->driver->incrby($key, (int)$increment);
287
+        return $this->driver->incrby($key, (int) $increment);
288 288
     }
289 289
 
290 290
     /**
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
      */
343 343
     public function scan(&$iterator, $pattern = null, $count = null)
344 344
     {
345
-        if ((string)$iterator === '0') {
345
+        if ((string) $iterator === '0') {
346 346
             return null;
347 347
         }
348 348
         $this->init();
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     public function hincrby($key, $field, $increment = 1)
391 391
     {
392 392
         $this->init();
393
-        return $this->driver->hincrby($key, $field, (int)$increment);
393
+        return $this->driver->hincrby($key, $field, (int) $increment);
394 394
     }
395 395
 
396 396
     /**
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
      */
453 453
     public function hscan($key, &$iterator, $pattern = null, $count = null)
454 454
     {
455
-        if ((string)$iterator === '0') {
455
+        if ((string) $iterator === '0') {
456 456
             return null;
457 457
         }
458 458
         $this->init();
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
      */
513 513
     public function sscan($key, &$iterator, $pattern = null, $count = null)
514 514
     {
515
-        if ((string)$iterator === '0') {
515
+        if ((string) $iterator === '0') {
516 516
             return null;
517 517
         }
518 518
         $this->init();
@@ -619,10 +619,10 @@  discard block
 block discarded – undo
619 619
      */
620 620
     private function prepareKeyValue(array $dictionary, $command)
621 621
     {
622
-        $keys = array_values(array_filter($dictionary, function ($key) {
622
+        $keys = array_values(array_filter($dictionary, function($key) {
623 623
             return $key % 2 == 0;
624 624
         }, ARRAY_FILTER_USE_KEY));
625
-        $values = array_values(array_filter($dictionary, function ($key) {
625
+        $values = array_values(array_filter($dictionary, function($key) {
626 626
             return $key % 2 == 1;
627 627
         }, ARRAY_FILTER_USE_KEY));
628 628
 
Please login to merge, or discard this patch.