lib/Phpfastcache/Drivers/Redis/Driver.php
Showing 2 of 2 total issues
Method driverConnect
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function driverConnect(): bool { if (isset($this->instance) && $this->instance instanceof RedisClient) { throw new PhpfastcacheLogicException('Already connected to Redis server'); }
Function driverConnect
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function driverConnect(): bool { if (isset($this->instance) && $this->instance instanceof RedisClient) { throw new PhpfastcacheLogicException('Already connected to Redis server'); }
- Read upRead up