Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Oct 10, 2024
1 parent bb4d82a commit f82d2ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,17 @@ protected function fetchUsersAndGroups()
$users = [];
$foundUsers = $auth->retrieveUsers(0, 50, ['user' => $term]);
if (!empty($foundUsers)) {
$users = array_map(static fn($name, $user) => ['label' => $user['name'] . " ($name)", 'value' => $name], array_keys($foundUsers), $foundUsers);
$users = array_map(
static fn($name, $user) => ['label' => $user['name'] . " ($name)", 'value' => $name],
array_keys($foundUsers),
$foundUsers
);
}

$groups = [];

// check cache
$cachedGroups = new cache('retrievedGroups', '.txt');
$cachedGroups = new \dokuwiki\Cache\Cache('retrievedGroups', '.txt');
if ($cachedGroups->useCache(['age' => 30])) {
$foundGroups = unserialize($cachedGroups->retrieveCache());
} else {
Expand Down Expand Up @@ -359,7 +363,6 @@ public function handlePagesaveBefore(Event $event, $param)
if ($event->data['contentChanged']) {
return;
} // will be saved for page changes
global $ACT;

//save page if summary is provided
if (!empty($event->data['summary'])) {
Expand Down

0 comments on commit f82d2ef

Please sign in to comment.