Skip to content

Commit 9bd6bf8

Browse files
committed
more readable
1 parent 8051d67 commit 9bd6bf8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

resources/lib/UnityLDAP.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,7 @@ public function getAllUID2PIGIDs()
340340
// initialize output so each UID is a key with an empty array as its value
341341
$UID2PIGIDs = array_combine(
342342
$this->getAllUsersUIDs(),
343-
array_map(
344-
fn($x) => [],
345-
$this->getAllUsersUIDs()
346-
)
343+
array_fill(0, count($this->getAllUsersUIDs()), []),
347344
);
348345
// for each PI group, append that GID to the member list for each of its member UIDs
349346
foreach ($this->getAllPIGroupsEntries() as $entry) {

0 commit comments

Comments
 (0)