diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-03-22 23:19:58 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-03-31 17:33:15 +0100 |
| commit | f25fc0f929f69ab8124cf0cecde45e457db7574a (patch) | |
| tree | 57acdf06e5150c223b5bc7ebb1d520fc2d42acde /app/Http/RequestHandlers/TreePrivacyPage.php | |
| parent | 0fb4d30bbf89a9b7cbd2dbb11c5f007ba735e5ce (diff) | |
| download | webtrees-f25fc0f929f69ab8124cf0cecde45e457db7574a.tar.gz webtrees-f25fc0f929f69ab8124cf0cecde45e457db7574a.tar.bz2 webtrees-f25fc0f929f69ab8124cf0cecde45e457db7574a.zip | |
PHP 7.4 - short arrow functions
Diffstat (limited to 'app/Http/RequestHandlers/TreePrivacyPage.php')
| -rw-r--r-- | app/Http/RequestHandlers/TreePrivacyPage.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/Http/RequestHandlers/TreePrivacyPage.php b/app/Http/RequestHandlers/TreePrivacyPage.php index 0d99f001db..dcc62b0a4c 100644 --- a/app/Http/RequestHandlers/TreePrivacyPage.php +++ b/app/Http/RequestHandlers/TreePrivacyPage.php @@ -132,9 +132,7 @@ class TreePrivacyPage implements RequestHandlerInterface return $row; }) - ->sort(static function (object $x, object $y): int { - return I18N::comparator()($x->tag_label, $y->tag_label); - }) + ->sort(static fn(object $x, object $y): int => I18N::comparator()($x->tag_label, $y->tag_label)) ->all(); } |
