Upgraded PHP-CS-Fixer / applied optimized rules

This commit is contained in:
Bernd Bestel
2023-08-02 18:44:30 +02:00
parent 6c4cc00fd5
commit d006436d49
21 changed files with 56 additions and 166 deletions

View File

@@ -35,9 +35,10 @@ class LocaleMiddleware extends BaseMiddleware
// Src: https://gist.github.com/spolischook/0cde9c6286415cddc088
$prefLocales = array_reduce(
explode(',', $langs),
function ($res, $el) {
function ($res, $el)
{
list($l, $q) = array_merge(explode(';q=', $el), [1]);
$res[$l] = (float) $q;
$res[$l] = (float)$q;
return $res;
},
[]