@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * @param array $args |
| 84 | 84 | * @return mixed |
| 85 | 85 | */ |
| 86 | - public function slowLog($subCommand, array $args=[]); |
|
| 86 | + public function slowLog($subCommand, array $args = []); |
|
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * @doc https://redis.io/commands/save |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | { |
| 100 | 100 | $command = Enum::INFO; |
| 101 | 101 | |
| 102 | - return $this->dispatch(Builder::build($command, $section))->then(function ($value) { |
|
| 102 | + return $this->dispatch(Builder::build($command, $section))->then(function($value) { |
|
| 103 | 103 | if ($value) { |
| 104 | 104 | $ret = explode("\r\n", $value); |
| 105 | 105 | $handled = []; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | { |
| 110 | 110 | if (($pos = strpos($v, '#')) !== false) |
| 111 | 111 | { |
| 112 | - $lastKey = strtolower(substr($v,$pos+2)); |
|
| 112 | + $lastKey = strtolower(substr($v, $pos + 2)); |
|
| 113 | 113 | $handled[$lastKey] = []; |
| 114 | 114 | continue; |
| 115 | 115 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | public function slowLog($subCommand, array $args = []) |
| 150 | 150 | { |
| 151 | 151 | $command = Enum::SLOWLOG; |
| 152 | - $args = array_merge([$subCommand],$args); |
|
| 152 | + $args = array_merge([$subCommand], $args); |
|
| 153 | 153 | |
| 154 | 154 | return $this->dispatch(Builder::build($command, $args)); |
| 155 | 155 | } |