Completed
Push — development ( b579bd...8aa65f )
by Claudio
01:58
created
app/Http/Controllers/MailController.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function send(array $configuration, string $view = 'habbo-web-mail.confirm-mail')
23 23
     {
24
-        if (!Config::get('mail.enable'))
25
-            return;
24
+        if (!Config::get('mail.enable')) {
25
+                    return;
26
+        }
26 27
 
27 28
         Mail::send($view, $configuration, function ($message) use ($configuration) {
28 29
             $message->from(Config::get('mail.from.address'), Config::get('mail.from.name'));
@@ -54,8 +55,9 @@  discard block
 block discarded – undo
54 55
     {
55 56
         $mailRequest = MailModel::where('token', $token)->where('used', '0')->first();
56 57
 
57
-        if ($mailRequest !== null)
58
-            $mailRequest->update(['used' => '1']);
58
+        if ($mailRequest !== null) {
59
+                    $mailRequest->update(['used' => '1']);
60
+        }
59 61
 
60 62
         return $mailRequest;
61 63
     }
Please login to merge, or discard this patch.