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 ...@@ -39,15 +39,13 @@ class NoCaptcha
{ {
$this->secret = $secret; $this->secret = $secret;
$this->sitekey = $sitekey; $this->sitekey = $sitekey;
$this->http = new Client([ $this->http = new Client([ 'timeout' => 2.0 ]);
'timeout' => 2.0,
]);
} }
/** /**
* Render HTML captcha. * Render HTML captcha.
* *
* @param array $attributes * @param array $attributes
* @param string $lang * @param string $lang
* *
* @return string * @return string
...@@ -124,6 +122,7 @@ class NoCaptcha ...@@ -124,6 +122,7 @@ class NoCaptcha
$response = $this->http->request('POST', static::VERIFY_URL, [ $response = $this->http->request('POST', static::VERIFY_URL, [
'form_params' => $query, 'form_params' => $query,
]); ]);
return json_decode($response->getBody(), true); 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