src/LdapTools/Connection/LdapServerPool.php
public function getSortedServersArray()
    {
        $servers = empty($this->config->getServers()) ? $this->getServersFromDns() : $this->config->getServers();

        if (self::SELECT_RANDOM == $this->selectionMethod) {
            $servers = $this->shuffleServers($servers);
        }

        return $servers;
    }
public function getSortedServersArray()
    {
        $servers = empty($this->config->getServers()) ? $this->getServersFromDns() : $this->config->getServers();

        if (self::SELECT_RANDOM == $this->selectionMethod) {
            $servers = $this->shuffleServers($servers);
        }

        return $servers;
    }
public function getSortedServersArray ( ) { $ servers = empty ( $ this -> config -> getServers ( ) ) ? $ this -> getServersFromDns ( ) : $ this -> config -> getServers ( ) ; if ( self :: SELECT_RANDOM == $ this -> selectionMethod ) { $ servers = $ this -> shuffleServers ( $ servers ) ; } return $ servers ; }
Uses the selected method to decide how to return the server array for the check.

@return array
Uses the selected method to decide how to return the server array for the check .