src/reCAPTCHA.php
public function getHtml()
    {
        if (!empty($this->siteKey))
        {
            $data = 'data-sitekey="'.$this->siteKey.'"';

            if (!is_null($this->theme))
                $data .= ' data-theme="'.$this->theme.'"';

            if (!is_null($this->type))
                $data .= ' data-type="'.$this->type.'"';

            if (!is_null($this->size))
                $data .= ' data-size="'.$this->size.'"';

            return '<div class="g-recaptcha" '.$data.'></div>';
        }
    }
public function getHtml()
    {
        if (!empty($this->siteKey))
        {
            $data = 'data-sitekey="'.$this->siteKey.'"';

            if (!is_null($this->theme))
                $data .= ' data-theme="'.$this->theme.'"';

            if (!is_null($this->type))
                $data .= ' data-type="'.$this->type.'"';

            if (!is_null($this->size))
                $data .= ' data-size="'.$this->size.'"';

            return '<div class="g-recaptcha" '.$data.'></div>';
        }
    }
public function getHtml ( ) { if ( ! empty ( $ this -> siteKey ) ) { $ data = 'data-sitekey="' . $ this -> siteKey . '"' ; if ( ! is_null ( $ this -> theme ) ) $ data .= ' data-theme="' . $ this -> theme . '"' ; if ( ! is_null ( $ this -> type ) ) $ data .= ' data-type="' . $ this -> type . '"' ; if ( ! is_null ( $ this -> size ) ) $ data .= ' data-size="' . $ this -> size . '"' ; return '<div class="g-recaptcha" ' . $ data . '></div>' ; } }
Generate the HTML code block for the captcha

@return string
Generate the HTML code block for the captcha