Sentry/Client.php
protected function get_auth_header($timestamp, $client, $api_key, $secret_key)
    {
        $header = array(
            sprintf('sentry_timestamp=%F', $timestamp),
            "sentry_client={$client}",
            sprintf('sentry_version=%s', self::PROTOCOL),
        );

        if ($api_key) {
            $header[] = "sentry_key={$api_key}";
        }

        if ($secret_key) {
            $header[] = "sentry_secret={$secret_key}";
        }


        return sprintf('Sentry %s', implode(', ', $header));
    }
protected function get_auth_header($timestamp, $client, $api_key, $secret_key)
    {
        $header = array(
            sprintf('sentry_timestamp=%F', $timestamp),
            "sentry_client={$client}",
            sprintf('sentry_version=%s', self::PROTOCOL),
        );

        if ($api_key) {
            $header[] = "sentry_key={$api_key}";
        }

        if ($secret_key) {
            $header[] = "sentry_secret={$secret_key}";
        }


        return sprintf('Sentry %s', implode(', ', $header));
    }
protected function get_auth_header ( $ timestamp , $ client , $ api_key , $ secret_key ) { $ header = array ( sprintf ( 'sentry_timestamp=%F' , $ timestamp ) , "sentry_client={$client}" , sprintf ( 'sentry_version=%s' , self :: PROTOCOL ) , ) ; if ( $ api_key ) { $ header [ ] = "sentry_key={$api_key}" ; } if ( $ secret_key ) { $ header [ ] = "sentry_secret={$secret_key}" ; } return sprintf ( 'Sentry %s' , implode ( ', ' , $ header ) ) ; }
Generate a Sentry authorization header string

@param string    $timestamp      Timestamp when the event occurred
@param string    $client         HTTP client name (not Client object)
@param string    $api_key        Sentry API key
@param string    $secret_key     Sentry API key
@return string
Generate a Sentry authorization header string