mirror of https://tt-rss.org/git/tt-rss.git
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:
parent
e20f64171e
commit
19f41bbd54
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue