@@ -74,7 +74,7 @@ |
||
| 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', |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | Fighter $attacker, |
| 41 | 41 | Attack $attack, |
| 42 | 42 | ): Damage { |
| 43 | - return match (true) { |
|
| 43 | + return match(true) { |
|
| 44 | 44 | $attack instanceof MeleeAttack => |
| 45 | 45 | (new Damage(0)) |
| 46 | 46 | ->increaseBy($attack->getDamage($attacker->getWeapon() |