@@ -41,8 +41,8 @@ |
||
41 | 41 | protected $levels; |
42 | 42 | |
43 | 43 | protected function configureOptions(OptionsResolver $resolver): void { |
44 | - $resolver->setRequired(["id", "name", "target", "levels",]); |
|
45 | - $resolver->setDefined(["description", "neededClass", "neededSpecialization", "neededLevel",]); |
|
44 | + $resolver->setRequired(["id", "name", "target", "levels", ]); |
|
45 | + $resolver->setDefined(["description", "neededClass", "neededSpecialization", "neededLevel", ]); |
|
46 | 46 | $resolver->setAllowedTypes("id", "int"); |
47 | 47 | $resolver->setAllowedTypes("name", "string"); |
48 | 48 | $resolver->setAllowedTypes("description", "string"); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | protected $bonusValue; |
35 | 35 | |
36 | 36 | public function __construct(array $data) { |
37 | - $allStats = ["id", "deployed", "bonusStat", "bonusValue",]; |
|
37 | + $allStats = ["id", "deployed", "bonusStat", "bonusValue", ]; |
|
38 | 38 | $resolver = new OptionsResolver(); |
39 | 39 | $resolver->setRequired($allStats); |
40 | 40 | $resolver->setAllowedTypes("id", "integer"); |
@@ -190,10 +190,10 @@ |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | protected function setStats(array $stats): void { |
193 | - $requiredStats = array_merge(["id", "name", "level", "initiativeFormula",], static::BASE_STATS); |
|
194 | - $allStats = array_merge($requiredStats, ["occupation", "race", "specialization", "gender", "experience",]); |
|
193 | + $requiredStats = array_merge(["id", "name", "level", "initiativeFormula", ], static::BASE_STATS); |
|
194 | + $allStats = array_merge($requiredStats, ["occupation", "race", "specialization", "gender", "experience", ]); |
|
195 | 195 | $numberStats = static::BASE_STATS; |
196 | - $textStats = ["name", "race", "occupation", "initiativeFormula",]; |
|
196 | + $textStats = ["name", "race", "occupation", "initiativeFormula", ]; |
|
197 | 197 | $resolver = new OptionsResolver(); |
198 | 198 | $resolver->setDefined($allStats); |
199 | 199 | $resolver->setAllowedTypes("id", ["integer", "string"]); |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | public function damageStat(): string { |
521 | 521 | $stat = static::STAT_STRENGTH; |
522 | 522 | foreach($this->equipment as $item) { |
523 | - if(!$item->worn OR $item->slot != Equipment::SLOT_WEAPON) { |
|
523 | + if(!$item->worn or $item->slot != Equipment::SLOT_WEAPON) { |
|
524 | 524 | continue; |
525 | 525 | } |
526 | 526 | switch($item->type) { |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | $stat = $effect->stat; |
580 | 580 | $type = $effect->type; |
581 | 581 | $duration = $effect->duration; |
582 | - if(is_int($duration) AND $duration < 1) { |
|
582 | + if(is_int($duration) and $duration < 1) { |
|
583 | 583 | $this->removeEffect($effect->id); |
584 | 584 | continue; |
585 | 585 | } |