Storage/src/SigningHelper.php
private function addCommonParams($generation, array $params, array $options)
    {
        if ($options['responseType']) {
            $params['response-content-type'] = $options['responseType'];
        }

        if ($options['responseDisposition']) {
            $params['response-content-disposition'] = $options['responseDisposition'];
        } elseif ($options['saveAsName']) {
            $params['response-content-disposition'] = 'attachment; filename='
                . '"' . $options['saveAsName'] . '"';
        }

        if ($generation) {
            $params['generation'] = $generation;
        }

        return $params;
    }
private function addCommonParams($generation, array $params, array $options)
    {
        if ($options['responseType']) {
            $params['response-content-type'] = $options['responseType'];
        }

        if ($options['responseDisposition']) {
            $params['response-content-disposition'] = $options['responseDisposition'];
        } elseif ($options['saveAsName']) {
            $params['response-content-disposition'] = 'attachment; filename='
                . '"' . $options['saveAsName'] . '"';
        }

        if ($generation) {
            $params['generation'] = $generation;
        }

        return $params;
    }
private function addCommonParams ( $ generation , array $ params , array $ options ) { if ( $ options [ 'responseType' ] ) { $ params [ 'response-content-type' ] = $ options [ 'responseType' ] ; } if ( $ options [ 'responseDisposition' ] ) { $ params [ 'response-content-disposition' ] = $ options [ 'responseDisposition' ] ; } elseif ( $ options [ 'saveAsName' ] ) { $ params [ 'response-content-disposition' ] = 'attachment; filename=' . '"' . $ options [ 'saveAsName' ] . '"' ; } if ( $ generation ) { $ params [ 'generation' ] = $ generation ; } return $ params ; }
Add parameters common to all signed URL versions.

@param int|null $generation
@param array $params
@param array $options
@return array
Add parameters common to all signed URL versions .