@@ -83,7 +83,7 @@ |
||
83 | 83 | * @param array $args |
84 | 84 | * @return mixed |
85 | 85 | */ |
86 | - public function slowLog($command, array $args=[]); |
|
86 | + public function slowLog($command, array $args = []); |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * @doc https://redis.io/commands/save |
@@ -59,7 +59,7 @@ |
||
59 | 59 | public function sIsMember($key, $member) |
60 | 60 | { |
61 | 61 | $command = Enum::SISMEMBER; |
62 | - $args = [$key ,$member]; |
|
62 | + $args = [$key, $member]; |
|
63 | 63 | |
64 | 64 | return $this->dispatch(Builder::build($command, $args)); |
65 | 65 | } |
@@ -103,7 +103,7 @@ discard block |
||
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 |
||
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 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | { |
156 | 156 | // TODO: Implement sLowLog() method. |
157 | 157 | $command = Enum::SLOWLOG; |
158 | - $args = array_merge([$command],$args); |
|
158 | + $args = array_merge([$command], $args); |
|
159 | 159 | |
160 | 160 | return $this->dispatch(Builder::build($command, $args)); |
161 | 161 | } |