Passed
Branch main (ed5467)
by Tim
11:06
created
Category
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Classes/Detect/BrowserLanguageDetect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Classes/Service/Normalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Unit/Detect/GeoPluginDetectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Tests/Unit/Service/NormalizerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Unit/Service/LocaleCollectionSortServiceTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.