@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | /** |
| 148 | 148 | * Create an instance of the loader and load the configuration in one step. |
| 149 | 149 | * |
| 150 | - * @param LaravelApplication|LumenApplication $app The current application |
|
| 150 | + * @param \Illuminate\Contracts\Container\Container $app The current application |
|
| 151 | 151 | * instance that provides context and services needed to load the |
| 152 | 152 | * appropriate configuration. |
| 153 | 153 | * |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | * This helper method enables the package's service providers to set config |
| 230 | 230 | * values without having to resolve the config service from the container. |
| 231 | 231 | * |
| 232 | - * @param string|array $key The key of the value or a tree of values as |
|
| 232 | + * @param string $key The key of the value or a tree of values as |
|
| 233 | 233 | * an associative array. |
| 234 | 234 | * @param mixed $value The value to set for the specified key. |
| 235 | 235 | * |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Monospice\LaravelRedisSentinel\Horizon; |
| 4 | 4 | |
| 5 | -use Illuminate\Contracts\Config\Repository as ConfigRepository; |
|
| 6 | 5 | use Illuminate\Contracts\Container\Container; |
| 7 | 6 | use Illuminate\Contracts\Redis\Factory as RedisFactory; |
| 8 | 7 | use Illuminate\Support\Arr; |
@@ -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 | |