Completed
Push — 2.0.x ( e33b31...4160d0 )
by Cy
01:59
created
src/RedisSentinelManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     protected function resolve($name)
46 46
     {
47
-        $options = Arr::get($this->config, 'options', [ ]);
47
+        $options = Arr::get($this->config, 'options', []);
48 48
 
49 49
         if (isset($this->config[$name])) {
50 50
             return $this->connector()->connect($this->config[$name], $options);
Please login to merge, or discard this patch.
src/Connectors/PredisConnector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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.
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         foreach ($sentinelOpts as $option => $value) {
90 90
             DynamicMethod::parseFromUnderscore($option)
91 91
                 ->prepend('set')
92
-                ->callOn($connection, [ $value ]);
92
+                ->callOn($connection, [$value]);
93 93
         }
94 94
     }
95 95
 }
Please login to merge, or discard this patch.