X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FReCAPTCHA.php;h=2d48759f59c23d8cc3f0185ed9106b576f4c65a7;hb=8671b4f2efb228dc654123b391fd794b23b99d49;hp=a8d470872b106d04fc5a66dfea29cccd4a1fc632;hpb=6f2500ee7589360102875df4367568fe87485df6;p=civicrm-core.git diff --git a/CRM/Utils/ReCAPTCHA.php b/CRM/Utils/ReCAPTCHA.php index a8d470872b..2d48759f59 100644 --- a/CRM/Utils/ReCAPTCHA.php +++ b/CRM/Utils/ReCAPTCHA.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 | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -47,18 +47,14 @@ class CRM_Utils_ReCAPTCHA { * pattern and cache the instance in this variable * * @var object - * @static */ static private $_singleton = NULL; /** * Singleton function used to manage this object * - * @param string the key to permit session scope's * * @return object - * @static - * */ public static function &singleton() { if (self::$_singleton === NULL) { @@ -68,17 +64,15 @@ class CRM_Utils_ReCAPTCHA { } /** - * */ public function __construct() { } /** * Add element to form - * */ public static function add(&$form) { - $error = NULL; + $error = NULL; $config = CRM_Core_Config::singleton(); $useSSL = FALSE; if (!function_exists('recaptcha_get_html')) { @@ -131,4 +125,5 @@ class CRM_Utils_ReCAPTCHA { ); return $resp->is_valid; } + }