@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | $this->setPreferences(); |
16 | 16 | |
17 | - if (config('captcha.enabled') === true && (! empty(config('captcha.secret')) && ! empty(config('captcha.sitekey')))) { |
|
17 | + if (config('captcha.enabled') === true && (!empty(config('captcha.secret')) && !empty(config('captcha.sitekey')))) { |
|
18 | 18 | $request->validate([ |
19 | 19 | 'g-recaptcha-response' => 'required|captcha', |
20 | 20 | ]); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | } |
34 | 34 | } |
35 | 35 | |
36 | - if (! preg_match("/\n/i", $request->input('useremail'))) { |
|
36 | + if (!preg_match("/\n/i", $request->input('useremail'))) { |
|
37 | 37 | SendContactUsEmail::dispatch($email, $mailTo, $mailBody)->onQueue('contactemail'); |
38 | 38 | } |
39 | 39 | $msg = "<h2 style='text-align:center;'>Thank you for getting in touch with ".config('app.name').'.</h2>'; |