Passed
Push — master ( 90a788...d30360 )
by Paweł
02:57
created
src/Fight/Fight.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         AttackAction::invoke($fighter, $this->findOpponent($fighter), $action, $this->playerAction);
75 75
     }
76 76
 
77
-    private function askForAction(): Attack|Usable
77
+    private function askForAction(): Attack | Usable
78 78
     {
79 79
         $action = $this->playerAction->askForChoice(
80 80
             'Select action',
Please login to merge, or discard this patch.
src/Fight/AttackAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     ): Damage {
43 43
         $initialDamage = new Damage(0);
44 44
 
45
-        return match (true) {
45
+        return match(true) {
46 46
             $attack instanceof MeleeAttack =>
47 47
                 $initialDamage
48 48
                     ->increaseBy($attack->getDamage($attacker->getWeapon()
Please login to merge, or discard this patch.