Passed
Push — master ( 8927c7...af53cd )
by Paweł
03:06
created
src/Infrastructure/Persistence/NormalizePlayer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             static function(Talent $talent): array {
46 46
                 $data = ['className' => get_class($talent)];
47 47
 
48
-                return match (true) {
48
+                return match(true) {
49 49
                     $talent instanceof SecretKnowledge => array_merge($data, [
50 50
                         'ascension' => $talent->getAscension()->get(),
51 51
                     ]),
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $data = ['className' => $className = get_class($weapon)];
66 66
 
67
-        return match (true) {
67
+        return match(true) {
68 68
             $weapon instanceof RebredirWeapon => array_merge($data, [
69 69
                 'etherumLoad' => $weapon->getEtherumLoad()->get(),
70 70
             ]),
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         return map(
78 78
             static function(InventoryItem $inventoryItem): array {
79
-                return match (true) {
79
+                return match(true) {
80 80
                     $inventoryItem instanceof Weapon => self::normalizeWeapon($inventoryItem),
81 81
                     default => ['className' => get_class($inventoryItem)],
82 82
                 };
Please login to merge, or discard this patch.
src/Infrastructure/GameKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $projectDir = dirname(__DIR__, 2);
42 42
         $loader = new YamlFileLoader($this->container, new FileLocator("{$projectDir}/config"));
43 43
 
44
-        $loader->load(match ($this->environment) {
44
+        $loader->load(match($this->environment) {
45 45
             self::ENV_PROD => 'services.yaml',
46 46
             self::ENV_TEST => 'services_test.yaml',
47 47
             default => throw GameKernelException::unknownEnvironment($this->environment),
Please login to merge, or discard this patch.