Completed
Push — master ( 9a1e57...9eab6b )
by Kamil
02:30
created
src/Redis/Command/Compose/ApiSetTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         // TODO: Implement sIsMember() method.
65 65
         $command = Enum::SISMEMBER;
66
-        $args = [$key ,$member];
66
+        $args = [$key, $member];
67 67
 
68 68
         return $this->dispatch(Builder::build($command, $args));
69 69
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         // TODO: Implement sLowLog() method.
78 78
         $command = Enum::SLOWLOG;
79
-        $args = array_merge([$command],$args);
79
+        $args = array_merge([$command], $args);
80 80
 
81 81
         return $this->dispatch(Builder::build($command, $args));
82 82
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         // TODO: Implement sMove() method.
104 104
         $command = Enum::SMOVE;
105 105
         $args = [$src, $dst];
106
-        $args = array_merge( $args, $members);
106
+        $args = array_merge($args, $members);
107 107
 
108 108
         return $this->dispatch(Builder::build($command, $args));
109 109
     }
Please login to merge, or discard this patch.
src/Redis/Command/Compose/ApiListTrait.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
         $keys[] = $timeout;
26 26
         $args = $keys;
27 27
         $promise = $this->dispatch(Builder::build($command, $args));
28
-        $promise = $promise->then(function ($value) {
28
+        $promise = $promise->then(function($value) {
29 29
             if (is_array($value)) {
30
-                list($k,$v) = $value;
30
+                list($k, $v) = $value;
31 31
 
32 32
                 return [
33 33
                     'key'=>$k,
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
         $keys[] = $timeout;
53 53
         $args = $keys;
54 54
         $promise = $this->dispatch(Builder::build($command, $args));
55
-        $promise = $promise->then(function ($value) {
55
+        $promise = $promise->then(function($value) {
56 56
             if (is_array($value)) {
57
-                list($k,$v) = $value;
57
+                list($k, $v) = $value;
58 58
 
59 59
                 return [
60 60
                     'key'=>$k,
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * @override
138 138
      * @inheritDoc
139 139
      */
140
-    public function lPush($key,...$values)
140
+    public function lPush($key, ...$values)
141 141
     {
142 142
         $command = Enum::LPUSH;
143 143
         array_unshift($values, $key);
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@  discard block
 block discarded – undo
26 26
         $args = $keys;
27 27
         $promise = $this->dispatch(Builder::build($command, $args));
28 28
         $promise = $promise->then(function ($value) {
29
-            if (is_array($value)) {
29
+            if (is_array($value))
30
+            {
30 31
                 list($k,$v) = $value;
31 32
 
32 33
                 return [
@@ -53,7 +54,8 @@  discard block
 block discarded – undo
53 54
         $args = $keys;
54 55
         $promise = $this->dispatch(Builder::build($command, $args));
55 56
         $promise = $promise->then(function ($value) {
56
-            if (is_array($value)) {
57
+            if (is_array($value))
58
+            {
57 59
                 list($k,$v) = $value;
58 60
 
59 61
                 return [
Please login to merge, or discard this patch.
src/Redis/Command/Compose/ApiCoreTrait.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $command = Enum::INFO;
105 105
 
106
-        return $this->dispatch(Builder::build($command, $section))->then(function ($value) {
106
+        return $this->dispatch(Builder::build($command, $section))->then(function($value) {
107 107
             if ($value) {
108 108
                 $ret = explode("\r\n", $value);
109 109
                 $handled = [];
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 {
114 114
                     if (($pos = strpos($v, '#')) !== false)
115 115
                     {
116
-                        $lastKey = strtolower(substr($v,$pos+2));
116
+                        $lastKey = strtolower(substr($v, $pos + 2));
117 117
                         $handled[$lastKey] = [];
118 118
                         continue;
119 119
                     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,8 @@  discard block
 block discarded – undo
104 104
         $command = Enum::INFO;
105 105
 
106 106
         return $this->dispatch(Builder::build($command, $section))->then(function ($value) {
107
-            if ($value) {
107
+            if ($value)
108
+            {
108 109
                 $ret = explode("\r\n", $value);
109 110
                 $handled = [];
110 111
                 $lastKey = '';
@@ -117,7 +118,8 @@  discard block
 block discarded – undo
117 118
                         $handled[$lastKey] = [];
118 119
                         continue;
119 120
                     }
120
-                    if ($v === '') {
121
+                    if ($v === '')
122
+                    {
121 123
                         continue;
122 124
                     }
123 125
                     if (($statMap = explode(':', $v)) && $statMap[0] && $statMap[1])
Please login to merge, or discard this patch.