src/ClientBase.php
protected function buildClient(array &$options)
    {
        if (!isset($options['debug']) && $this->config['env'] === self::ENV_DEVELOPMENT) {
            $options['debug'] = true;
        }

        if (!isset($options['handler'])) {
            return new GuzzleClient();
        }

        $client = new GuzzleClient(['handler' => $options['handler']]);
        unset($options['handler']);
        return $client;
    }
protected function buildClient(array &$options)
    {
        if (!isset($options['debug']) && $this->config['env'] === self::ENV_DEVELOPMENT) {
            $options['debug'] = true;
        }

        if (!isset($options['handler'])) {
            return new GuzzleClient();
        }

        $client = new GuzzleClient(['handler' => $options['handler']]);
        unset($options['handler']);
        return $client;
    }
protected function buildClient ( array & $ options ) { if ( ! isset ( $ options [ 'debug' ] ) && $ this -> config [ 'env' ] === self :: ENV_DEVELOPMENT ) { $ options [ 'debug' ] = true ; } if ( ! isset ( $ options [ 'handler' ] ) ) { return new GuzzleClient ( ) ; } $ client = new GuzzleClient ( [ 'handler' => $ options [ 'handler' ] ] ) ; unset ( $ options [ 'handler' ] ) ; return $ client ; }
Build the Guzzle client.

@param array $options
The options array.

@return \GuzzleHttp\Client
Build the Guzzle client .