Skip to content

Commit

Permalink
Merge pull request #85 from RyanDaDeng/analysis-NAN6w4
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
RyanDaDeng committed Aug 29, 2021
2 parents 251594d + 9914e84 commit c599117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/GoogleReCaptchaV3Service.php
Expand Up @@ -44,7 +44,7 @@ public function ifInSkippedIps($ip)
*/
public function verifyResponse($response, $ip = null)
{
if (!$this->config->isServiceEnabled() || ($ip && $this->ifInSkippedIps($ip)) === true) {
if (! $this->config->isServiceEnabled() || ($ip && $this->ifInSkippedIps($ip)) === true) {
$res = new GoogleReCaptchaV3Response([], $ip);
$res->setSuccess(true);

Expand Down Expand Up @@ -85,7 +85,7 @@ public function verifyResponse($response, $ip = null)
return $rawResponse;
}

if (!empty($this->config->getHostName()) && strcasecmp($this->config->getHostName(), $rawResponse->getHostname()) !== 0) {
if (! empty($this->config->getHostName()) && strcasecmp($this->config->getHostName(), $rawResponse->getHostname()) !== 0) {
$rawResponse->setMessage(Lang::get(GoogleReCaptchaV3Response::ERROR_HOSTNAME));
$rawResponse->setSuccess(false);

Expand Down

0 comments on commit c599117

Please sign in to comment.