@@ -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; |
@@ -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->make('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, $conf) use ($cache) { |
|
83 | + $cache->extend('redis-sentinel', function($app, $conf) use ($cache) { |
|
84 | 84 | $redis = $app['redis-sentinel']; |
85 | 85 | $prefix = $app->make('config')->get('cache.prefix'); |
86 | 86 | $connection = Arr::get($conf, '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 | $config = $app->make('config'); |
105 | 105 | |
106 | 106 | $cacheDriver = clone $app->make('cache')->driver('redis-sentinel'); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | $app = $this->app; |
127 | 127 | |
128 | - $queue->extend('redis-sentinel', function () use ($app) { |
|
128 | + $queue->extend('redis-sentinel', function() use ($app) { |
|
129 | 129 | return new RedisConnector($app->make('redis-sentinel')); |
130 | 130 | }); |
131 | 131 | } |