Skip to content

Commit c534e0a

Browse files
committed
run cs-fixer
1 parent 2c7767b commit c534e0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

system/Cache/Handlers/RedisHandler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ class RedisHandler extends BaseHandler
3939
* }
4040
*/
4141
protected $config = [
42-
'host' => '127.0.0.1',
43-
'password' => null,
44-
'port' => 6379,
45-
'timeout' => 0,
42+
'host' => '127.0.0.1',
43+
'password' => null,
44+
'port' => 6379,
45+
'timeout' => 0,
4646
'persistent' => false,
47-
'database' => 0,
47+
'database' => 0,
4848
];
4949

5050
/**
@@ -88,7 +88,7 @@ public function initialize()
8888

8989
// Note:: If Redis is your primary cache choice, and it is "offline", every page load will end up been delayed by the timeout duration.
9090
// I feel like some sort of temporary flag should be set, to indicate that we think Redis is "offline", allowing us to bypass the timeout for a set period of time.
91-
if (! $this->redis->$funcConnection($config['host'], ($config['host'][0] === '/' ? 0 : $config['port']), $config['timeout'])) {
91+
if (! $this->redis->{$funcConnection}($config['host'], ($config['host'][0] === '/' ? 0 : $config['port']), $config['timeout'])) {
9292
// Note:: I'm unsure if log_message() is necessary, however I'm not 100% comfortable removing it.
9393
log_message('error', 'Cache: Redis connection failed. Check your configuration.');
9494

0 commit comments

Comments
 (0)