src/Client.php
private function getConfigForVerbAndParameters($verb, $parameters = [])
    {
        $config = [
            'headers' => $this->getHeaders()
        ];

        if (!empty($parameters)) {
            if (strtolower($verb) == 'get') {
                $config['query'] = $parameters;
            } else {
                $config['json'] = $parameters;
            }
        }

        return $config;
    }
private function getConfigForVerbAndParameters($verb, $parameters = [])
    {
        $config = [
            'headers' => $this->getHeaders()
        ];

        if (!empty($parameters)) {
            if (strtolower($verb) == 'get') {
                $config['query'] = $parameters;
            } else {
                $config['json'] = $parameters;
            }
        }

        return $config;
    }
private function getConfigForVerbAndParameters ( $ verb , $ parameters = [ ] ) { $ config = [ 'headers' => $ this -> getHeaders ( ) ] ; if ( ! empty ( $ parameters ) ) { if ( strtolower ( $ verb ) == 'get' ) { $ config [ 'query' ] = $ parameters ; } else { $ config [ 'json' ] = $ parameters ; } } return $ config ; }
Gets HttpClient config for verb and parameters.

@param    string   $verb
@param    array    $parameters

@return   array
Gets HttpClient config for verb and parameters .