X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSigner.php;h=eb902bc18949f199adac6968755bad5d42c4c706;hb=5760fcb6d5e8f36c514c7a00385e8d227212f46f;hp=3d62bf56518c591e947521a2db7a5708496f25d3;hpb=2099e281172b0622067cc4791d032155c9156e42;p=civicrm-core.git diff --git a/CRM/Utils/Signer.php b/CRM/Utils/Signer.php index 3d62bf5651..eb902bc189 100644 --- a/CRM/Utils/Signer.php +++ b/CRM/Utils/Signer.php @@ -1,34 +1,18 @@ secret = $secret; $this->paramNames = $paramNames; - $this->signDelim = "_"; // chosen to be valid in URLs but not in salt or md5 + // chosen to be valid in URLs but not in salt or md5 + $this->signDelim = "_"; $this->defaultSalt = CRM_Utils_String::createRandom(self::SALT_LEN, CRM_Utils_String::ALPHANUMERIC); } @@ -81,9 +67,9 @@ class CRM_Utils_Signer { * @return string, the full public token representing the signature */ public function sign($params, $salt = NULL) { - $message = array(); + $message = []; $message['secret'] = $this->secret; - $message['payload'] = array(); + $message['payload'] = []; if (empty($salt)) { $message['salt'] = $this->createSalt(); }