@@ -45,7 +45,7 @@ discard block |
||
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 |
||
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 |
||
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 | }; |
@@ -41,7 +41,7 @@ |
||
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), |