@@ -21,8 +21,9 @@ discard block |
||
| 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 |
||
| 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 | } |