src/Tool/HttpTrait.php
protected function prepareQueryParams($params = [], $csvParams = [])
    {
        array_walk($params, function ($value, $key) use (&$params, $csvParams) {
            if (is_bool($value)) {
                $params[$key] = $this->getBoolString($value);
            }

            if (in_array($key, $csvParams)) {
                $params[$key] = $this->arrayToCsv($value);
            }
        });

        return http_build_query($params);
    }
protected function prepareQueryParams($params = [], $csvParams = [])
    {
        array_walk($params, function ($value, $key) use (&$params, $csvParams) {
            if (is_bool($value)) {
                $params[$key] = $this->getBoolString($value);
            }

            if (in_array($key, $csvParams)) {
                $params[$key] = $this->arrayToCsv($value);
            }
        });

        return http_build_query($params);
    }
protected function prepareQueryParams ( $ params = [ ] , $ csvParams = [ ] ) { array_walk ( $ params , function ( $ value , $ key ) use ( & $ params , $ csvParams ) { if ( is_bool ( $ value ) ) { $ params [ $ key ] = $ this -> getBoolString ( $ value ) ; } if ( in_array ( $ key , $ csvParams ) ) { $ params [ $ key ] = $ this -> arrayToCsv ( $ value ) ; } } ) ; return http_build_query ( $ params ) ; }
Updates query params array to apply yelp specific formatting rules.

@param  array      $params
@param  string[]   $csvParams

@return string
Updates query params array to apply yelp specific formatting rules .