@@ -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); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | arsort($acceptedLanguagesArr); |
37 | 37 | |
38 | 38 | // Remove quality 0.0 |
39 | - $acceptedLanguagesArr = array_filter($acceptedLanguagesArr, fn ($value, $key): bool => 0.0 !== $value, \ARRAY_FILTER_USE_BOTH); |
|
39 | + $acceptedLanguagesArr = array_filter($acceptedLanguagesArr, fn($value, $key): bool => 0.0 !== $value, \ARRAY_FILTER_USE_BOTH); |
|
40 | 40 | |
41 | 41 | $event->setUserLanguages(LocaleCollection::fromArray(array_keys($acceptedLanguagesArr))); |
42 | 42 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function normalizeList(LocaleCollection $locales): LocaleCollection |
13 | 13 | { |
14 | - $result = array_map(fn (LocaleValueObject $locale): string => $this->normalize((string)$locale), $locales->toArray()); |
|
14 | + $result = array_map(fn(LocaleValueObject $locale): string => $this->normalize((string)$locale), $locales->toArray()); |
|
15 | 15 | |
16 | 16 | return LocaleCollection::fromArray($result); |
17 | 17 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $ipLanguage = new GeoPluginDetect($ipLocation, new LanguageService(), new SiteConfigurationService(), new LocaleCollectionSortService()); |
53 | 53 | $ipLanguage($event); |
54 | 54 | |
55 | - self::assertSame($result, array_map(fn ($locale): string => (string)$locale, $event->getUserLanguages()->toArray())); |
|
55 | + self::assertSame($result, array_map(fn($locale): string => (string)$locale, $event->getUserLanguages()->toArray())); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -35,9 +35,9 @@ |
||
35 | 35 | { |
36 | 36 | $normalizer = new Normalizer(); |
37 | 37 | |
38 | - $base = array_map(fn ($item): string => $item[0], $this->normalizeProvider()); |
|
38 | + $base = array_map(fn($item): string => $item[0], $this->normalizeProvider()); |
|
39 | 39 | |
40 | - $result = array_map(fn ($item): string => $item[1], $this->normalizeProvider()); |
|
40 | + $result = array_map(fn($item): string => $item[1], $this->normalizeProvider()); |
|
41 | 41 | |
42 | 42 | self::assertEquals(array_values($result), $normalizer->normalizeList(LocaleCollection::fromArray(array_values($base)))->toArray()); |
43 | 43 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $result = $sortService->addLocaleByMode($collection, new LocaleValueObject('en')); |
30 | 30 | |
31 | - self::assertSame(['de', 'en'], array_map(fn (LocaleValueObject $item): string => (string)$item, $result->toArray())); |
|
31 | + self::assertSame(['de', 'en'], array_map(fn(LocaleValueObject $item): string => (string)$item, $result->toArray())); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
@@ -43,6 +43,6 @@ discard block |
||
43 | 43 | |
44 | 44 | $result = $sortService->addLocaleByMode($collection, new LocaleValueObject('en'), LocaleCollectionSortService::SORT_REPLACE); |
45 | 45 | |
46 | - self::assertSame(['en'], array_map(fn (LocaleValueObject $item): string => (string)$item, $result->toArray())); |
|
46 | + self::assertSame(['en'], array_map(fn(LocaleValueObject $item): string => (string)$item, $result->toArray())); |
|
47 | 47 | } |
48 | 48 | } |