diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 23:46:40 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 23:46:40 +0100 |
commit | a661f043e1a8764cb7c795f50df77b830d3e352b (patch) | |
tree | 77a06311ffb5e59c86def06bbb618335da1f2b6a /settings/Controller | |
parent | 9be6050cc42c2760bd2276942a24ba3db288b551 (diff) | |
download | nextcloud-server-a661f043e1a8764cb7c795f50df77b830d3e352b.tar.gz nextcloud-server-a661f043e1a8764cb7c795f50df77b830d3e352b.zip |
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/MailSettingsController.php | 2 | ||||
-rw-r--r-- | settings/Controller/UsersController.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/settings/Controller/MailSettingsController.php b/settings/Controller/MailSettingsController.php index 02bd51e843e..22e2662a216 100644 --- a/settings/Controller/MailSettingsController.php +++ b/settings/Controller/MailSettingsController.php @@ -101,7 +101,7 @@ class MailSettingsController extends Controller { $params = get_defined_vars(); $configs = []; foreach($params as $key => $value) { - $configs[$key] = (empty($value)) ? null : $value; + $configs[$key] = empty($value) ? null : $value; } // Delete passwords from config in case no auth is specified diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php index c373cb0d521..7b18eda6833 100644 --- a/settings/Controller/UsersController.php +++ b/settings/Controller/UsersController.php @@ -254,7 +254,7 @@ class UsersController extends Controller { return [ 'name' => $user->getUID(), 'displayname' => $user->getDisplayName(), - 'groups' => (empty($userGroups)) ? $this->groupManager->getUserGroupIds($user) : $userGroups, + 'groups' => empty($userGroups) ? $this->groupManager->getUserGroupIds($user) : $userGroups, 'subadmin' => $subAdminGroups, 'quota' => $user->getQuota(), 'quota_bytes' => Util::computerFileSize($user->getQuota()), |