src/Common/Internal/RestProxy.php
protected function addOptionalQueryParam(array &$queryParameters, $key, $value)
    {
        Validate::isString($key, 'key');
        Validate::isString($value, 'value');

        if (!is_null($value) && Resources::EMPTY_STRING !== $value) {
            $queryParameters[$key] = $value;
        }
    }
protected function addOptionalQueryParam(array &$queryParameters, $key, $value)
    {
        Validate::isString($key, 'key');
        Validate::isString($value, 'value');

        if (!is_null($value) && Resources::EMPTY_STRING !== $value) {
            $queryParameters[$key] = $value;
        }
    }
protected function addOptionalQueryParam ( array & $ queryParameters , $ key , $ value ) { Validate :: isString ( $ key , 'key' ) ; Validate :: isString ( $ value , 'value' ) ; if ( ! is_null ( $ value ) && Resources :: EMPTY_STRING !== $ value ) { $ queryParameters [ $ key ] = $ value ; } }
Adds optional query parameter.

Doesn't add the value if it satisfies empty().

@param array  &$queryParameters The query parameters
@param string $key              The query variable name
@param string $value            The query variable value
Adds optional query parameter .