public static function normalizeConnection(array $connection)
    {
        $normal = [ ];

        if (array_key_exists('options', $connection)) {
            $normal['options'] = $connection['options'];
            unset($connection['options']);
        }

        foreach ($connection as $host) {
            $normal = array_merge($normal, static::normalizeHost($host));
        }

        return $normal;
    }
public static function normalizeConnection(array $connection)
    {
        $normal = [ ];

        if (array_key_exists('options', $connection)) {
            $normal['options'] = $connection['options'];
            unset($connection['options']);
        }

        foreach ($connection as $host) {
            $normal = array_merge($normal, static::normalizeHost($host));
        }

        return $normal;
    }
public static function normalizeConnection ( array $ connection ) { $ normal = [ ] ; if ( array_key_exists ( 'options' , $ connection ) ) { $ normal [ 'options' ] = $ connection [ 'options' ] ; unset ( $ connection [ 'options' ] ) ; } foreach ( $ connection as $ host ) { $ normal = array_merge ( $ normal , static :: normalizeHost ( $ host ) ) ; } return $ normal ; }
Create single host entries for any host definitions that specify
multiple hosts in the provided connection configuration.

@param array $connection The connection config which contains the host
definitions for a single Redis Sentinel connection

@return array The normalized connection configuration values
Create single host entries for any host definitions that specify multiple hosts in the provided connection configuration .