lib/Elastica/Client.php
protected function _prepareConnectionParams(array $config)
    {
        $params = [];
        $params['config'] = [];
        foreach ($config as $key => $value) {
            if (\in_array($key, ['bigintConversion', 'curl', 'headers', 'url'])) {
                $params['config'][$key] = $value;
            } else {
                $params[$key] = $value;
            }
        }

        return $params;
    }
protected function _prepareConnectionParams(array $config)
    {
        $params = [];
        $params['config'] = [];
        foreach ($config as $key => $value) {
            if (\in_array($key, ['bigintConversion', 'curl', 'headers', 'url'])) {
                $params['config'][$key] = $value;
            } else {
                $params[$key] = $value;
            }
        }

        return $params;
    }
protected function _prepareConnectionParams ( array $ config ) { $ params = [ ] ; $ params [ 'config' ] = [ ] ; foreach ( $ config as $ key => $ value ) { if ( \ in_array ( $ key , [ 'bigintConversion' , 'curl' , 'headers' , 'url' ] ) ) { $ params [ 'config' ] [ $ key ] = $ value ; } else { $ params [ $ key ] = $ value ; } } return $ params ; }
Creates a Connection params array from a Client or server config array.

@param array $config

@return array
Creates a Connection params array from a Client or server config array .