src/Charcoal/Admin/AdminAction.php
public function recaptchaEnabled()
    {
        $recaptcha = $this->apiConfig('google.recaptcha');

        if (empty($recaptcha) || (isset($recaptcha['active']) && $recaptcha['active'] === false)) {
            return false;
        }

        return (!empty($recaptcha['public_key'])  || !empty($recaptcha['key'])) &&
               (!empty($recaptcha['private_key']) || !empty($recaptcha['secret']));
    }
public function recaptchaEnabled()
    {
        $recaptcha = $this->apiConfig('google.recaptcha');

        if (empty($recaptcha) || (isset($recaptcha['active']) && $recaptcha['active'] === false)) {
            return false;
        }

        return (!empty($recaptcha['public_key'])  || !empty($recaptcha['key'])) &&
               (!empty($recaptcha['private_key']) || !empty($recaptcha['secret']));
    }
public function recaptchaEnabled ( ) { $ recaptcha = $ this -> apiConfig ( 'google.recaptcha' ) ; if ( empty ( $ recaptcha ) || ( isset ( $ recaptcha [ 'active' ] ) && $ recaptcha [ 'active' ] === false ) ) { return false ; } return ( ! empty ( $ recaptcha [ 'public_key' ] ) || ! empty ( $ recaptcha [ 'key' ] ) ) && ( ! empty ( $ recaptcha [ 'private_key' ] ) || ! empty ( $ recaptcha [ 'secret' ] ) ) ; }
Determine if a CAPTCHA test is available.

For example, the "Login", "Lost Password", and "Reset Password" templates
can render the CAPTCHA test.

@see    AdminTemplate::recaptchaEnabled() Duplicate
@return boolean
Determine if a CAPTCHA test is available .