Commit 8f7b8b33 authored by Nguyen Van Anh's avatar Nguyen Van Anh Committed by GitHub

Code format

parent 81675ccb
......@@ -39,15 +39,13 @@ class NoCaptcha
{
$this->secret = $secret;
$this->sitekey = $sitekey;
$this->http = new Client([
'timeout' => 2.0,
]);
$this->http = new Client([ 'timeout' => 2.0 ]);
}
/**
* Render HTML captcha.
*
* @param array $attributes
* @param array $attributes
* @param string $lang
*
* @return string
......@@ -124,6 +122,7 @@ class NoCaptcha
$response = $this->http->request('POST', static::VERIFY_URL, [
'form_params' => $query,
]);
return json_decode($response->getBody(), true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment