X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FVerp.php;h=afe1a6849cd87a0df44303d355689449ce6eec0b;hb=8671b4f2efb228dc654123b391fd794b23b99d49;hp=6229edbbbe6ef46e25f8bd8e0ec33e191de4d6bb;hpb=d44a51e500618f1d9abfad4cc6de65cf20226c10;p=civicrm-core.git diff --git a/CRM/Utils/Verp.php b/CRM/Utils/Verp.php index 6229edbbbe..afe1a6849c 100644 --- a/CRM/Utils/Verp.php +++ b/CRM/Utils/Verp.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * Class to handle encoding and decoding Variable Enveleope Return Path (VERP) @@ -64,11 +64,13 @@ class CRM_Utils_Verp { /** * Encode the sender's address with the VERPed recipient. * - * @param string $sender The address of the sender - * @param string $recipient The address of the recipient + * @param string $sender + * The address of the sender. + * @param string $recipient + * The address of the recipient. * - * @return string The VERP encoded address - * @static + * @return string + * The VERP encoded address */ public static function encode($sender, $recipient) { preg_match('/(.+)\@([^\@]+)$/', $sender, $match); @@ -90,16 +92,17 @@ class CRM_Utils_Verp { /** * Decode the address and return the sender and recipient as an array * - * @param string $address The address to be decoded + * @param string $address + * The address to be decoded. * - * @return array The tuple ($sender, $recipient) - * @static + * @return array + * The tuple ($sender, $recipient) */ public static function &verpdecode($address) { preg_match('/^(.+)-([^=]+)=([^\@]+)\@(.+)/', $address, $match); - $slocal = $match[1]; - $rlocal = $match[2]; + $slocal = $match[1]; + $rlocal = $match[2]; $rdomain = $match[3]; $sdomain = $match[4]; @@ -110,4 +113,5 @@ class CRM_Utils_Verp { return array("$slocal@$sdomain", "$rlocal@$rdomain"); } + }