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.
app/Http/Controllers/AccountSecurityController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
app/Helpers/Session.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.