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

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

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

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

        return $options;
    }
protected function convertWriteTimeout ( array $ options ) { if ( version_compare ( phpversion ( 'mongo' ) , '1.4.0' , '<' ) ) { return $ options ; } if ( isset ( $ options [ 'wTimeout' ] ) && ! isset ( $ options [ 'wTimeoutMS' ] ) ) { $ options [ 'wTimeoutMS' ] = $ options [ 'wTimeout' ] ; unset ( $ options [ 'wTimeout' ] ) ; } return $ options ; }
Converts "wTimeout" RiakClient constructor option to "wTimeoutMS" 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 wTimeout RiakClient constructor option to wTimeoutMS for driver versions 1 . 4 . 0 + .