Passed
Push — master ( 6f4b10...8c675f )
by Darko
13:02
created
app/Http/Controllers/Admin/AdminUserController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         // Add country data to each user based on their host IP
63 63
         foreach ($results as $user) {
64 64
             $position = null;
65
-            if (! empty($user->host) && filter_var($user->host, FILTER_VALIDATE_IP)) {
65
+            if (!empty($user->host) && filter_var($user->host, FILTER_VALIDATE_IP)) {
66 66
                 $position = Location::get($user->host);
67 67
             }
68 68
             $user->country_name = $position ? $position->countryName : null;
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                     // This must happen BEFORE role change so the new expiry applies to the old role
185 185
                     if ($request->has('rolechangedate')) {
186 186
                         $roleChangeDate = $request->input('rolechangedate');
187
-                        if (! empty($roleChangeDate)) {
187
+                        if (!empty($roleChangeDate)) {
188 188
                             User::updateUserRoleChangeDate($editedUser->id, $roleChangeDate);
189 189
                         } else {
190 190
                             // Clear the rolechangedate if empty string is provided
Please login to merge, or discard this patch.