@@ -76,7 +76,7 @@ |
||
| 76 | 76 | ? $this->askForAction($playerAction, $attacker) |
| 77 | 77 | : $attacker->getTalents()->filterAttacks()->getIterator()->current(); // todo |
| 78 | 78 | |
| 79 | - $damage = match (true) { |
|
| 79 | + $damage = match(true) { |
|
| 80 | 80 | $attack instanceof MeleeAttack => $attack->getDamage( |
| 81 | 81 | $attacker->getWeapon() ?? throw FightException::weaponRequired(), |
| 82 | 82 | ), |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function askForConfirmation(string $question): bool; |
| 22 | 22 | |
| 23 | - public function tell(string|array $message): void; |
|
| 23 | + public function tell(string | array $message): void; |
|
| 24 | 24 | |
| 25 | 25 | public function newTour(string $message): void; |
| 26 | 26 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | return $this->io->confirm($question); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - public function tell(string|array $message): void |
|
| 42 | + public function tell(string | array $message): void |
|
| 43 | 43 | { |
| 44 | 44 | sleep(1); |
| 45 | 45 | $this->io->text($message); |