Completed
Push — master ( 6e62ff...a5d74c )
by Jakub
02:45
created
src/BaseSkill.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
src/Pet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
src/Character.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -190,10 +190,10 @@
 block discarded – undo
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"]);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
       }
Please login to merge, or discard this patch.