protected function buildClusterSeed($server)
    {
        $parameters = [];

        foreach (['database', 'timeout', 'prefix'] as $parameter) {
            if (! empty($server[$parameter])) {
                $parameters[$parameter] = $server[$parameter];
            }
        }

        if (! empty($server['password'])) {
            $parameters['auth'] = $server['password'];
        }

        return $server['host'].':'.$server['port'].'?'.http_build_query($parameters);
    }
protected function buildClusterSeed($server)
    {
        $parameters = [];

        foreach (['database', 'timeout', 'prefix'] as $parameter) {
            if (! empty($server[$parameter])) {
                $parameters[$parameter] = $server[$parameter];
            }
        }

        if (! empty($server['password'])) {
            $parameters['auth'] = $server['password'];
        }

        return $server['host'].':'.$server['port'].'?'.http_build_query($parameters);
    }
protected function buildClusterSeed ( $ server ) { $ parameters = [ ] ; foreach ( [ 'database' , 'timeout' , 'prefix' ] as $ parameter ) { if ( ! empty ( $ server [ $ parameter ] ) ) { $ parameters [ $ parameter ] = $ server [ $ parameter ] ; } } if ( ! empty ( $ server [ 'password' ] ) ) { $ parameters [ 'auth' ] = $ server [ 'password' ] ; } return $ server [ 'host' ] . ':' . $ server [ 'port' ] . '?' . http_build_query ( $ parameters ) ; }
Build a cluster seed string.

@param  array  $server
@return string
Build a cluster seed string .