Completed
Push — master ( feae1a...1a50e1 )
by Jakub
02:36
created
src/Character.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
   public function damageStat(): string {
498 498
     $stat = "strength";
499 499
     foreach($this->equipment as $item) {
500
-      if(!$item->worn OR $item->slot != Equipment::SLOT_WEAPON) {
500
+      if(!$item->worn or $item->slot != Equipment::SLOT_WEAPON) {
501 501
         continue;
502 502
       }
503 503
       switch($item->type) {
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
       $stat = $effect->stat;
557 557
       $type = $effect->type;
558 558
       $duration = $effect->duration;
559
-      if(is_int($duration) AND $duration < 1) {
559
+      if(is_int($duration) and $duration < 1) {
560 560
         $this->removeEffect($effect->id);
561 561
         continue;
562 562
       }
Please login to merge, or discard this patch.
src/CombatBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace HeroesofAbenez\Combat;
5 5
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     $this->onCombatEnd[] = [$this, "logCombatResult"];
83 83
     $this->onCombatEnd[] = [$this, "resetInitiative"];
84 84
     $this->onRoundStart[] = [$this, "decreaseEffectsDuration"];
85
-    $this->onRoundStart[] = [$this ,"recalculateStats"];
85
+    $this->onRoundStart[] = [$this, "recalculateStats"];
86 86
     $this->onRoundStart[] = [$this, "logRoundNumber"];
87 87
     $this->onRoundStart[] = [$this, "applyPoison"];
88 88
     $this->onRound[] = [$this, "mainStage"];
Please login to merge, or discard this patch.