Completed
Push — 2.x ( ae70d4...c1417c )
by Cy
04:39
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.
src/RedisSentinelServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         // Lumen removed session support since version 5.2, so we'll only bind
40 40
         // the Sentinel session handler if we're running Laravel.
41
-        if (! $this->isLumenApplication()) {
41
+        if (!$this->isLumenApplication()) {
42 42
             $this->addRedisSentinelSessionHandler($this->app->make('session'));
43 43
         }
44 44
 
Please login to merge, or discard this patch.