Passed
Push — master ( d5fecc...be90da )
by Paweł
03:08
created
src/Fight/Fight.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $action = $attacker->getTalents()->filterAttacks()->getIterator()->current(); // todo
78 78
         }
79 79
 
80
-        $damage = match (true) {
80
+        $damage = match(true) {
81 81
             $action instanceof MeleeAttack =>
82 82
                 $action->getDamage($attacker->getWeapon() ?? throw FightException::weaponRequired())
83 83
                     ->increaseBy($attacker->getStrength()),
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $this->playerAction->tell("{$attacker->getName()} uses {$action} and deals {$damage} damage.");
96 96
     }
97 97
 
98
-    private function askForAction(Player $player): Attack|Usable
98
+    private function askForAction(Player $player): Attack | Usable
99 99
     {
100 100
         $action = $this->playerAction->askForChoice(
101 101
             'Select action',
Please login to merge, or discard this patch.