Completed
Push — master ( 623b8e...7e8926 )
by
unknown
30:25 queued 08:36
created
apps/provisioning_api/lib/Controller/GroupsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	#[NoAdminRequired]
79 79
 	public function getGroups(string $search = '', ?int $limit = null, int $offset = 0): DataResponse {
80 80
 		$groups = $this->groupManager->search($search, $limit, $offset);
81
-		$groups = array_map(function ($group) {
81
+		$groups = array_map(function($group) {
82 82
 			/** @var IGroup $group */
83 83
 			return $group->getGID();
84 84
 		}, $groups);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	#[AuthorizedAdminSetting(settings: Users::class)]
102 102
 	public function getGroupsDetails(string $search = '', ?int $limit = null, int $offset = 0): DataResponse {
103 103
 		$groups = $this->groupManager->search($search, $limit, $offset);
104
-		$groups = array_map(function ($group) {
104
+		$groups = array_map(function($group) {
105 105
 			/** @var IGroup $group */
106 106
 			return [
107 107
 				'id' => $group->getGID(),
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 		$isDelegatedAdmin = $this->groupManager->isDelegatedAdmin($user->getUID());
167 167
 		if ($isAdmin || $isDelegatedAdmin || $isSubadminOfGroup || $isMember) {
168 168
 			$users = $this->groupManager->get($groupId)->getUsers();
169
-			$users = array_map(function ($user) {
169
+			$users = array_map(function($user) {
170 170
 				/** @var IUser $user */
171 171
 				return $user->getUID();
172 172
 			}, $users);
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 			foreach ($users as $user) {
216 216
 				try {
217 217
 					/** @var IUser $user */
218
-					$userId = (string)$user->getUID();
218
+					$userId = (string) $user->getUID();
219 219
 					$userData = $this->getUserData($userId);
220 220
 					// Do not insert empty entry
221 221
 					if ($userData !== null) {
Please login to merge, or discard this patch.