src/Hmac.php
public static function getSignatureString(array $signatureHeaders)
    {
        $signature = '';

        foreach ($signatureHeaders as $header => $value) {
            if ($signature !== '') {
                $signature .= "\n";
            }

            if (is_array($value)) {
                $value = $value[0];
            }

            $signature = mb_strtolower($header) === "request-line"
                ? "{$signature}{$value}"
                : $signature . mb_strtolower($header) . ": {$value}";
        }

        return $signature;
    }
public static function getSignatureString(array $signatureHeaders)
    {
        $signature = '';

        foreach ($signatureHeaders as $header => $value) {
            if ($signature !== '') {
                $signature .= "\n";
            }

            if (is_array($value)) {
                $value = $value[0];
            }

            $signature = mb_strtolower($header) === "request-line"
                ? "{$signature}{$value}"
                : $signature . mb_strtolower($header) . ": {$value}";
        }

        return $signature;
    }
public static function getSignatureString ( array $ signatureHeaders ) { $ signature = '' ; foreach ( $ signatureHeaders as $ header => $ value ) { if ( $ signature !== '' ) { $ signature .= "\n" ; } if ( is_array ( $ value ) ) { $ value = $ value [ 0 ] ; } $ signature = mb_strtolower ( $ header ) === "request-line" ? "{$signature}{$value}" : $ signature . mb_strtolower ( $ header ) . ": {$value}" ; } return $ signature ; }
Builds signature string used for signing of the request.

@param array $signatureHeaders Specific headers for signing request.
@return string String composed of signature headers.
Builds signature string used for signing of the request .