public function verify($response)
    {
        $result = $this->getVerificationResult($response);

        if ($result['success']) {
            return true;
        }

        if (!empty($result['error-codes'])) {
            $this->errors = $result['error-codes'];
        }

        return false;
    }
public function verify($response)
    {
        $result = $this->getVerificationResult($response);

        if ($result['success']) {
            return true;
        }

        if (!empty($result['error-codes'])) {
            $this->errors = $result['error-codes'];
        }

        return false;
    }
public function verify ( $ response ) { $ result = $ this -> getVerificationResult ( $ response ) ; if ( $ result [ 'success' ] ) { return true ; } if ( ! empty ( $ result [ 'error-codes' ] ) ) { $ this -> errors = $ result [ 'error-codes' ] ; } return false ; }
Returns whether the given response was successful.

@param string $response The form's 'g-recaptcha-response' field value.

@return bool
Returns whether the given response was successful .