Completed
Pull Request — 2.x (#36)
by
unknown
05:57
created
src/Connectors/PhpRedisConnector.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
      * @return PhpRedisConnection The Sentinel connection containing a configured
58 58
      * PhpRedis Client
59 59
      */
60
-    public function connect(array $servers, array $options = [ ])
60
+    public function connect(array $servers, array $options = [])
61 61
     {
62 62
         // Set the initial Sentinel servers.
63 63
         $this->servers = $servers;
64 64
 
65 65
         // Merge the global options shared by all Sentinel connections with
66 66
         // connection-specific options
67
-        $clientOpts = array_merge($options, Arr::pull($servers, 'options', [ ]));
67
+        $clientOpts = array_merge($options, Arr::pull($servers, 'options', []));
68 68
 
69 69
         // Extract the array of Sentinel connection options from the rest of
70 70
         // the client options
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                                 'host' => $host,
118 118
                                 'port' => $port,
119 119
                             ]
120
-                        ], array_map(fn ($sentinel) => [
120
+                        ], array_map(fn($sentinel) => [
121 121
                             'host' => $sentinel['ip'],
122 122
                             'port' => $sentinel['port'],
123 123
                         ], $sentinel->sentinels($service))
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 }
126 126
 
127 127
                 $master = $sentinel->getMasterAddrByName($service);
128
-                if (! is_array($master) || ! count($master)) {
128
+                if (!is_array($master) || !count($master)) {
129 129
                     throw new RedisException(sprintf('No master found for service "%s".', $service));
130 130
                 }
131 131
 
Please login to merge, or discard this patch.