Completed
Push — 2.x ( a4c016...1080d0 )
by Cy
02:04
created
src/Connectors/PredisConnector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Manager/VersionedRedisSentinelManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     protected function resolveConnection($name = null)
37 37
     {
38 38
         $name = $name ?: 'default';
39
-        $options = Arr::get($this->config, 'options', [ ]);
39
+        $options = Arr::get($this->config, 'options', []);
40 40
 
41 41
         if (isset($this->config[$name])) {
42 42
             return $this->connector()->connect($this->config[$name], $options);
Please login to merge, or discard this patch.