Passed
Push — master ( 5deb44...ec8b22 )
by Darko
08:20
created
app/Jobs/PurgeDeletedAccounts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         User::onlyTrashed()
35 35
             ->where('deleted_at', '<', now()->subDays(config('nntmux.purge_inactive_users_days')))
36 36
             ->get()
37
-            ->each(function ($user) {
37
+            ->each(function($user) {
38 38
                 $user->forceDelete(); // Permanently delete the user
39 39
             });
40 40
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminUserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         // Add country data to each user based on their host IP
58 58
         foreach ($results as $user) {
59 59
             $position = null;
60
-            if (! empty($user->host) && filter_var($user->host, FILTER_VALIDATE_IP)) {
60
+            if (!empty($user->host) && filter_var($user->host, FILTER_VALIDATE_IP)) {
61 61
                 $position = Location::get($user->host);
62 62
             }
63 63
             $user->country_name = $position ? $position->countryName : null;
Please login to merge, or discard this patch.
app/Support/Google2FAAuthenticator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
 {
10 10
     protected function canPassWithoutCheckingOTP(): bool
11 11
     {
12
-        if (! $this->getUser()->passwordSecurity) {
12
+        if (!$this->getUser()->passwordSecurity) {
13 13
             return true;
14 14
         }
15 15
 
16 16
         return
17
-            ! $this->getUser()->passwordSecurity->google2fa_enable ||
18
-            ! $this->isEnabled() ||
17
+            !$this->getUser()->passwordSecurity->google2fa_enable ||
18
+            !$this->isEnabled() ||
19 19
             $this->noUserIsAuthenticated() ||
20 20
             $this->twoFactorAuthStillValid() ||
21 21
             $this->isDeviceTrusted();
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $cookie = request()->cookie('2fa_trusted_device');
30 30
 
31
-        if (! $cookie) {
31
+        if (!$cookie) {
32 32
             return false;
33 33
         }
34 34
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             $data = json_decode($cookie, true);
37 37
 
38 38
             // Check if cookie contains the required data
39
-            if (! isset($data['user_id'], $data['token'], $data['expires_at'])) {
39
+            if (!isset($data['user_id'], $data['token'], $data['expires_at'])) {
40 40
                 return false;
41 41
             }
42 42
 
Please login to merge, or discard this patch.