@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $this->createHorizonConnectionConfiguration(); |
65 | 65 | |
66 | 66 | $class = $this->config->getVersionedRedisSentinelManagerClass(); |
67 | - $config = $this->config->get('database.redis-sentinel', [ ]); |
|
67 | + $config = $this->config->get('database.redis-sentinel', []); |
|
68 | 68 | $driver = Arr::pull($config, 'client', 'predis'); |
69 | 69 | |
70 | 70 | return new RedisSentinelManager(new $class($driver, $config)); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | protected function createHorizonConnectionConfiguration() |
86 | 86 | { |
87 | 87 | $horizonConfig = $this->getSelectedConnectionConfiguration(); |
88 | - $options = Arr::get($horizonConfig, 'options', [ ]); |
|
88 | + $options = Arr::get($horizonConfig, 'options', []); |
|
89 | 89 | $options['prefix'] = $this->config->get('horizon.prefix', 'horizon:'); |
90 | 90 | |
91 | 91 | $horizonConfig['options'] = $options; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | { |
129 | 129 | // If we're already overriding Laravel's standard Redis API, we don't |
130 | 130 | // need to rebind the "redis" service for Horizon. |
131 | - return ! $this->config->shouldOverrideLaravelRedisApi |
|
131 | + return !$this->config->shouldOverrideLaravelRedisApi |
|
132 | 132 | && $this->config->get('horizon.driver') === 'redis-sentinel'; |
133 | 133 | } |
134 | 134 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | { |
85 | 85 | $this->app->singleton('redis-sentinel', function ($app) { |
86 | 86 | $class = $this->config->getVersionedRedisSentinelManagerClass(); |
87 | - $config = $this->config->get('database.redis-sentinel', [ ]); |
|
87 | + $config = $this->config->get('database.redis-sentinel', []); |
|
88 | 88 | $driver = Arr::pull($config, 'client', 'predis'); |
89 | 89 | |
90 | 90 | return new RedisSentinelManager(new $class($driver, $config)); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | // This package's Horizon service provider will set up the queue |
129 | 129 | // connector a bit differently, so we don't need to do it twice: |
130 | - if (! $this->config->horizonAvailable) { |
|
130 | + if (!$this->config->horizonAvailable) { |
|
131 | 131 | $this->addRedisSentinelQueueConnector(); |
132 | 132 | } |
133 | 133 |