Passed
Push — master ( 552948...2e7820 )
by Paweł
02:59
created
src/Infrastructure/Persistence/DenormalizePlayer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             static function(array $talent): Talent {
55 55
                 $reflection = new \ReflectionClass($talent['className']);
56 56
 
57
-                $talent = match ($talent['className']) {
57
+                $talent = match($talent['className']) {
58 58
                     WeaponMastery::class =>
59 59
                         $reflection->newInstance(
60 60
                             new WeaponType($talent['type']),
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $reflection = new \ReflectionClass($data['className']);
79 79
 
80
-        $weapon = match (true) {
80
+        $weapon = match(true) {
81 81
             in_array(RebredirWeapon::class, $reflection->getTraitNames()) =>
82 82
                 $reflection->newInstance(new Etherum($data['etherumLoad'])),
83 83
             default => $reflection->newInstance(),
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             static function(array $item): InventoryItem {
95 95
                 $reflection = new \ReflectionClass($item['className']);
96 96
 
97
-                $item = match (true) {
97
+                $item = match(true) {
98 98
                     $reflection->isSubclassOf(Weapon::class) => self::denormalizeWeapon($item),
99 99
                     default => $reflection->newInstance(),
100 100
                 };
Please login to merge, or discard this patch.
src/Infrastructure/Persistence/NormalizePlayer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             static function(Talent $talent): array {
44 44
                 $data = ['className' => get_class($talent)];
45 45
 
46
-                return match (true) {
46
+                return match(true) {
47 47
                     $talent instanceof SecretKnowledge => array_merge($data, [
48 48
                         'ascension' => $talent->getAscension()->get(),
49 49
                     ]),
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         return map(
76 76
             static function(InventoryItem $inventoryItem): array {
77
-                return match (true) {
77
+                return match(true) {
78 78
                     $inventoryItem instanceof Weapon => self::normalizeWeapon($inventoryItem),
79 79
                     default => ['className' => get_class($inventoryItem)],
80 80
                 };
Please login to merge, or discard this patch.