laravel/framework

View on GitHub
src/Illuminate/Redis/Connectors/PhpRedisConnector.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method createClient has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function createClient(array $config)
    {
        return tap(new Redis, function ($client) use ($config) {
            if ($client instanceof RedisFacade) {
                throw new LogicException(
Severity: Minor
Found in src/Illuminate/Redis/Connectors/PhpRedisConnector.php - About 1 hr to fix

    Method createRedisClusterInstance has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function createRedisClusterInstance(array $servers, array $options)
        {
            $parameters = [
                null,
                array_values($servers),
    Severity: Minor
    Found in src/Illuminate/Redis/Connectors/PhpRedisConnector.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status