protected static function normalizeHostArray(array $hostArray)
    {
        if (! array_key_exists('host', $hostArray)) {
            return [ $hostArray ];
        }

        $port = Arr::get($hostArray, 'port', 26379);

        return static::normalizeHostString($hostArray['host'], $port);
    }
protected static function normalizeHostArray(array $hostArray)
    {
        if (! array_key_exists('host', $hostArray)) {
            return [ $hostArray ];
        }

        $port = Arr::get($hostArray, 'port', 26379);

        return static::normalizeHostString($hostArray['host'], $port);
    }
protected static function normalizeHostArray ( array $ hostArray ) { if ( ! array_key_exists ( 'host' , $ hostArray ) ) { return [ $ hostArray ] ; } $ port = Arr :: get ( $ hostArray , 'port' , 26379 ) ; return static :: normalizeHostString ( $ hostArray [ 'host' ] , $ port ) ; }
Parse a host definition in the form of an array into multiple host
definitions if it specifies more than one host.

@param array $hostArray The host definition from a Redis Sentinel
connection

@return array One or more host definitions parsed from the provided
host definition
Parse a host definition in the form of an array into multiple host definitions if it specifies more than one host .