@@ -17,7 +17,7 @@ |
||
17 | 17 | use Ssch\TYPO3Rector\Set\Typo3SetList; |
18 | 18 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
19 | 19 | |
20 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
20 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
21 | 21 | |
22 | 22 | $containerConfigurator->import(Typo3SetList::TYPO3_76); |
23 | 23 | $containerConfigurator->import(Typo3SetList::TYPO3_87); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function normalizeList(array $locales): array |
13 | 13 | { |
14 | - return array_map(fn (string $locale): string => $this->normalize($locale), $locales); |
|
14 | + return array_map(fn(string $locale): string => $this->normalize($locale), $locales); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public function normalize(string $locale): string |
@@ -35,7 +35,7 @@ |
||
35 | 35 | arsort($acceptedLanguagesArr); |
36 | 36 | |
37 | 37 | // Remove quality 0.0 |
38 | - $acceptedLanguagesArr = array_filter($acceptedLanguagesArr, fn ($value, $key): bool => 0.0 !== $value, \ARRAY_FILTER_USE_BOTH); |
|
38 | + $acceptedLanguagesArr = array_filter($acceptedLanguagesArr, fn($value, $key): bool => 0.0 !== $value, \ARRAY_FILTER_USE_BOTH); |
|
39 | 39 | |
40 | 40 | $event->setUserLanguages(array_keys($acceptedLanguagesArr)); |
41 | 41 | } |
@@ -32,9 +32,9 @@ |
||
32 | 32 | { |
33 | 33 | $normalizer = new Normalizer(); |
34 | 34 | |
35 | - $base = array_map(fn ($item): string => $item[0], $this->normalizeProvider()); |
|
35 | + $base = array_map(fn($item): string => $item[0], $this->normalizeProvider()); |
|
36 | 36 | |
37 | - $result = array_map(fn ($item): string => $item[1], $this->normalizeProvider()); |
|
37 | + $result = array_map(fn($item): string => $item[1], $this->normalizeProvider()); |
|
38 | 38 | |
39 | 39 | self::assertEquals($result, $normalizer->normalizeList($base)); |
40 | 40 | } |