aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Utf8/Sort.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Utf8/Sort.php')
-rw-r--r--inc/Utf8/Sort.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/Utf8/Sort.php b/inc/Utf8/Sort.php
index decb058a7..9f066b050 100644
--- a/inc/Utf8/Sort.php
+++ b/inc/Utf8/Sort.php
@@ -55,7 +55,9 @@ class Sort
'Collator created with locale "' . $lc . '": numeric collation on, ' .
'valid locale "' . $collator->getLocale(\Locale::VALID_LOCALE) . '", ' .
'actual locale "' . $collator->getLocale(\Locale::ACTUAL_LOCALE) . '"',
- null, __FILE__, __LINE__
+ null,
+ __FILE__,
+ __LINE__
);
self::$collators[$lc] = $collator;
}
@@ -128,7 +130,7 @@ class Sort
{
$collator = self::getCollator();
if (isset($collator)) {
- return uksort($array, array($collator, 'compare'));
+ return uksort($array, [$collator, 'compare']);
} else {
return ksort($array, SORT_NATURAL | SORT_FLAG_CASE);
}