@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Combat; |
5 | 5 | |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | } |
162 | 162 | |
163 | 163 | protected function setStats(array $stats): void { |
164 | - $requiredStats = ["id", "name", "level", "strength", "dexterity", "constitution", "intelligence", "charisma", "initiativeFormula",]; |
|
165 | - $allStats = array_merge($requiredStats, ["occupation", "race", "specialization", "gender", "experience",]); |
|
166 | - $numberStats = ["strength", "dexterity", "constitution", "intelligence", "charisma",]; |
|
167 | - $textStats = ["name", "race", "occupation", "initiativeFormula",]; |
|
164 | + $requiredStats = ["id", "name", "level", "strength", "dexterity", "constitution", "intelligence", "charisma", "initiativeFormula", ]; |
|
165 | + $allStats = array_merge($requiredStats, ["occupation", "race", "specialization", "gender", "experience", ]); |
|
166 | + $numberStats = ["strength", "dexterity", "constitution", "intelligence", "charisma", ]; |
|
167 | + $textStats = ["name", "race", "occupation", "initiativeFormula", ]; |
|
168 | 168 | $resolver = new OptionsResolver(); |
169 | 169 | $resolver->setDefined($allStats); |
170 | 170 | $resolver->setAllowedTypes("id", ["integer", "string"]); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace HeroesofAbenez\Combat; |
5 | 5 |