lib/CosmoW/Riak/Connection.php
protected function convertConnectTimeout(array $options)
    {
        if (version_compare(phpversion('mongo'), '1.4.0', '<')) {
            return $options;
        }

        if (isset($options['timeout']) && ! isset($options['connectTimeoutMS'])) {
            $options['connectTimeoutMS'] = $options['timeout'];
            unset($options['timeout']);
        }

        return $options;
    }
protected function convertConnectTimeout(array $options)
    {
        if (version_compare(phpversion('mongo'), '1.4.0', '<')) {
            return $options;
        }

        if (isset($options['timeout']) && ! isset($options['connectTimeoutMS'])) {
            $options['connectTimeoutMS'] = $options['timeout'];
            unset($options['timeout']);
        }

        return $options;
    }
protected function convertConnectTimeout ( array $ options ) { if ( version_compare ( phpversion ( 'mongo' ) , '1.4.0' , '<' ) ) { return $ options ; } if ( isset ( $ options [ 'timeout' ] ) && ! isset ( $ options [ 'connectTimeoutMS' ] ) ) { $ options [ 'connectTimeoutMS' ] = $ options [ 'timeout' ] ; unset ( $ options [ 'timeout' ] ) ; } return $ options ; }
Converts "timeout" RiakClient constructor option to "connectTimeoutMS"
for driver versions 1.4.0+.

Note: RiakClient actually allows case-insensitive option names, but
we'll only process the canonical version here.

@param array $options
@return array
Converts timeout RiakClient constructor option to connectTimeoutMS for driver versions 1 . 4 . 0 + .