mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 07:13:11 +08:00
Replaced regular callbacks by arrow functions when possible
This commit is contained in:
@@ -75,9 +75,10 @@ class SimplifiedConfigParser
|
||||
// This mainly allows deprecating keys and defining new ones that will replace the older and always take
|
||||
// preference, while the old one keeps working for backwards compatibility if the new one is not provided.
|
||||
$simplifiedConfigOrder = array_flip(array_keys(self::SIMPLIFIED_CONFIG_MAPPING));
|
||||
uksort($configForExistingKeys, function (string $a, string $b) use ($simplifiedConfigOrder): int {
|
||||
return $simplifiedConfigOrder[$a] - $simplifiedConfigOrder[$b];
|
||||
});
|
||||
uksort(
|
||||
$configForExistingKeys,
|
||||
fn (string $a, string $b): int => $simplifiedConfigOrder[$a] - $simplifiedConfigOrder[$b]
|
||||
);
|
||||
|
||||
return $configForExistingKeys;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user