@@ -151,7 +151,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -83,7 +83,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |