Use an arrow function in 'Pref_Prefs'.

Missed in a prior PR, caught by 'php-cs-fixer fix --rules=use_arrow_functions'.
This commit is contained in:
wn_ 2022-11-20 19:17:06 +00:00
parent e20f64171e
commit 19f41bbd54
1 changed files with 1 additions and 3 deletions

View File

@ -807,9 +807,7 @@ class Pref_Prefs extends Handler_Protected {
]);
}
usort($rv, function ($a, $b) {
return strcmp($a['name'], $b['name']);
});
usort($rv, fn ($a, $b) => strcmp($a['name'], $b['name']));
echo json_encode(['plugins' => $rv, 'is_admin' => $_SESSION['access_level'] >= UserHelper::ACCESS_LEVEL_ADMIN]);
}