@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | * @return PredisConnection The Sentinel connection containing a configured |
46 | 46 | * Predis Client |
47 | 47 | */ |
48 | - public function connect(array $server, array $options = [ ]) |
|
48 | + public function connect(array $server, array $options = []) |
|
49 | 49 | { |
50 | 50 | // Merge the global options shared by all Sentinel connections with |
51 | 51 | // connection-specific options |
52 | - $clientOpts = array_merge($options, Arr::pull($server, 'options', [ ])); |
|
52 | + $clientOpts = array_merge($options, Arr::pull($server, 'options', [])); |
|
53 | 53 | |
54 | 54 | // Automatically set "replication" to "sentinel". This is the Sentinel |
55 | 55 | // driver, after all. |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | foreach ($sentinelOpts as $option => $value) { |
92 | 92 | DynamicMethod::parseFromUnderscore($option) |
93 | 93 | ->prepend('set') |
94 | - ->callOn($connection, [ $value ]); |
|
94 | + ->callOn($connection, [$value]); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | return $client; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | protected function resolveConnection($name = null) |
37 | 37 | { |
38 | - $options = Arr::get($this->config, 'options', [ ]); |
|
38 | + $options = Arr::get($this->config, 'options', []); |
|
39 | 39 | |
40 | 40 | if ($name == null) { |
41 | 41 | $name = 'default'; |