lib/WebhookSignature.php
private static function getSignatures($header, $scheme)
    {
        $signatures = [];
        $items = explode(",", $header);

        foreach ($items as $item) {
            $itemParts = explode("=", $item, 2);
            if ($itemParts[0] == $scheme) {
                array_push($signatures, $itemParts[1]);
            }
        }

        return $signatures;
    }
private static function getSignatures($header, $scheme)
    {
        $signatures = [];
        $items = explode(",", $header);

        foreach ($items as $item) {
            $itemParts = explode("=", $item, 2);
            if ($itemParts[0] == $scheme) {
                array_push($signatures, $itemParts[1]);
            }
        }

        return $signatures;
    }
private static function getSignatures ( $ header , $ scheme ) { $ signatures = [ ] ; $ items = explode ( "," , $ header ) ; foreach ( $ items as $ item ) { $ itemParts = explode ( "=" , $ item , 2 ) ; if ( $ itemParts [ 0 ] == $ scheme ) { array_push ( $ signatures , $ itemParts [ 1 ] ) ; } } return $ signatures ; }
Extracts the signatures matching a given scheme in a signature header.

@param string $header the signature header
@param string $scheme the signature scheme to look for.
@return array the list of signatures matching the provided scheme.
Extracts the signatures matching a given scheme in a signature header .