@@ -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 | } |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | * |
| 201 | 201 | * @param Request $request |
| 202 | 202 | * |
| 203 | - * @return mixed |
|
| 203 | + * @return JsonResponse |
|
| 204 | 204 | */ |
| 205 | 205 | public function confirmChangePassword(Request $request): JsonResponse |
| 206 | 206 | { |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * Check if a Key exists in the Session. |
| 67 | 67 | * |
| 68 | - * @param mixed $key |
|
| 68 | + * @param string $key |
|
| 69 | 69 | * |
| 70 | 70 | * @return bool |
| 71 | 71 | */ |