Completed
Push — 2.0.x ( 4160d0...1037b6 )
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 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      * @param array $clientOpts   Non-sentinel client options
77 77
      * @param array $sentinelOpts Sentinel-specific options
78 78
      *
79
-     * @return void
79
+     * @return Client
80 80
      */
81 81
     protected function makePredisClient(
82 82
         array $server,
Please login to merge, or discard this 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.