Completed
Push — 2.x ( c13c96...12d966 )
by Cy
01:59
created
src/Configuration/Loader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function loadConfiguration()
153 153
     {
154
-        if (! $this->shouldLoadConfiguration()) {
154
+        if (!$this->shouldLoadConfiguration()) {
155 155
             return;
156 156
         }
157 157
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      */
264 264
     protected function setSessionConfiguration()
265 265
     {
266
-        if (! $this->supportsSessions
266
+        if (!$this->supportsSessions
267 267
             || $this->config->get('session.driver') !== 'redis-sentinel'
268 268
             || $this->config->get('session.connection') !== null
269 269
         ) {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     protected function mergePackageConfiguration()
299 299
     {
300 300
         $defaultConfig = require self::CONFIG_PATH;
301
-        $currentConfig = $this->config->get('redis-sentinel', [ ]);
301
+        $currentConfig = $this->config->get('redis-sentinel', []);
302 302
 
303 303
         $this->packageConfig = array_merge($defaultConfig, $currentConfig);
304 304
     }
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     {
314 314
         $connections = $this->config->get('database.redis-sentinel');
315 315
 
316
-        if (! is_array($connections)) {
316
+        if (!is_array($connections)) {
317 317
             return;
318 318
         }
319 319
 
Please login to merge, or discard this patch.
src/Configuration/HostNormalizer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public static function normalizeConnection(array $connection)
85 85
     {
86
-        $normal = [ ];
86
+        $normal = [];
87 87
 
88 88
         if (array_key_exists('options', $connection)) {
89 89
             $normal['options'] = $connection['options'];
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             return static::normalizeHostString($host);
118 118
         }
119 119
 
120
-        return [ $host ];
120
+        return [$host];
121 121
     }
122 122
 
123 123
     /**
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
      */
133 133
     protected static function normalizeHostArray(array $hostArray)
134 134
     {
135
-        if (! array_key_exists('host', $hostArray)) {
136
-            return [ $hostArray ];
135
+        if (!array_key_exists('host', $hostArray)) {
136
+            return [$hostArray];
137 137
         }
138 138
 
139 139
         $port = Arr::get($hostArray, 'port', 26379);
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     protected static function normalizeHostString($hostString, $port = 26379)
157 157
     {
158
-        $hosts = [ ];
158
+        $hosts = [];
159 159
 
160 160
         foreach (explode(',', $hostString) as $host) {
161 161
             $host = trim($host);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             if (Str::contains($host, ':')) {
164 164
                 $hosts[] = $host;
165 165
             } else {
166
-                $hosts[] = [ 'host' => $host, 'port' => $port ];
166
+                $hosts[] = ['host' => $host, 'port' => $port];
167 167
             }
168 168
         }
169 169
 
Please login to merge, or discard this patch.