fucongcong/framework

View on GitHub
core/Group/Redis/RedisServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 4 of 4 total issues

The method register uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

}else {
$redis->connect($config['default']['host'], $config['default']['port']);
}

Inline control structures are not allowed
Open

if (\Config::get("database::cache") != 'redis') return null;

Line exceeds 120 characters; contains 122 characters
Open

$redis->setOption(Redis::OPT_PREFIX, isset($config['default']['prefix']) ? $config['default']['prefix'] : '');

Expected 1 space after closing brace; 0 found
Open

}else {

There are no issues that match your filters.

Category
Status