@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function register() |
56 | 56 | { |
57 | - $this->app->singleton('redis-sentinel', function ($app) { |
|
57 | + $this->app->singleton('redis-sentinel', function($app) { |
|
58 | 58 | $config = $app->config->get('database.redis-sentinel'); |
59 | 59 | |
60 | 60 | return new RedisSentinelDatabase($config); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | // instance of the RedisSentinelDatabase when requesting the "redis" |
65 | 65 | // service: |
66 | 66 | if ($this->shouldOverrideLaravelApi()) { |
67 | - $this->app->singleton('redis', function ($app) { |
|
67 | + $this->app->singleton('redis', function($app) { |
|
68 | 68 | return $app->make('redis-sentinel'); |
69 | 69 | }); |
70 | 70 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | protected function addRedisSentinelCacheDriver(CacheManager $cache) |
82 | 82 | { |
83 | - $cache->extend('redis-sentinel', function ($app, $driverConfig) { |
|
83 | + $cache->extend('redis-sentinel', function($app, $driverConfig) { |
|
84 | 84 | $redis = $app['redis-sentinel']; |
85 | 85 | $prefix = $app->config->get('cache.prefix'); |
86 | 86 | $connection = Arr::get($driverConfig, 'connection', 'default'); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | protected function addRedisSentinelSessionHandler(SessionManager $session) |
102 | 102 | { |
103 | - $session->extend('redis-sentinel', function ($app) { |
|
103 | + $session->extend('redis-sentinel', function($app) { |
|
104 | 104 | $cacheDriver = clone $app->cache->driver('redis-sentinel'); |
105 | 105 | $minutes = $app->config->get('session.lifetime'); |
106 | 106 | $connection = $app->config->get('session.connection'); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | { |
124 | 124 | $app = $this->app; |
125 | 125 | |
126 | - $queue->extend('redis-sentinel', function () use ($app) { |
|
126 | + $queue->extend('redis-sentinel', function() use ($app) { |
|
127 | 127 | return new RedisConnector($app->make('redis-sentinel')); |
128 | 128 | }); |
129 | 129 | } |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $connection = $client->getConnection(); |
96 | 96 | |
97 | 97 | foreach ($sentinelConnectionOptions as $option => $value) { |
98 | - $connection->{'set' . Str::studly($option)}($value); |
|
98 | + $connection->{'set'.Str::studly($option)}($value); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | return $client; |