@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 |