active(); if ($active === null) { $this->warn('No CAPTCHA is configured, so there is nothing to test.'); return self::SUCCESS; } $this->line(sprintf( 'Testing %s with %s keys…', $active->provider->label(), $active->managed ? 'the platform’s' : 'this installation’s', )); $result = $verifier->test($active->provider, $active->secretKey); if ($result['ok']) { $this->info($result['message']); return self::SUCCESS; } $this->error($result['message']); return self::FAILURE; } }