Passed
Pull Request — master (#1713)
by Darko
07:01
created
app/Http/Controllers/ContactUsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>';
Please login to merge, or discard this patch.