Passed
Push — master ( 0b1636...daadce )
by Paweł
02:53
created
src/Player/PlayerAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function askForConfirmation(string $question): bool;
19 19
 
20
-    public function tell(string|array $message): void;
20
+    public function tell(string | array $message): void;
21 21
 
22 22
     public function list(array $items): void;
23 23
 
Please login to merge, or discard this patch.
src/Fight/Fight.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $this->playerAction->tell("{$fighter->getName()} uses {$action} and deals {$damage} damage.");
92 92
     }
93 93
 
94
-    private function askForAction(): Attack|Usable
94
+    private function askForAction(): Attack | Usable
95 95
     {
96 96
         $action = $this->playerAction->askForChoice(
97 97
             'Select action',
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
     private function calculateDamage(Attack $attack, Fighter $fighter): Damage
123 123
     {
124
-        return match (true) {
124
+        return match(true) {
125 125
             $attack instanceof MeleeAttack =>
126 126
             $attack->getDamage($fighter->getWeapon() ?? throw FightException::weaponRequired())
127 127
                 ->increaseBy($fighter->getStrength()),
Please login to merge, or discard this patch.