Passed
Push — master ( 7d57ab...389500 )
by Jakub
03:10
created
src/CombatBase.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     $this->onCombatEnd[] = [$this, "resetInitiative"];
89 89
     $this->onRoundStart[] = [$this, "applyEffectProviders"];
90 90
     $this->onRoundStart[] = [$this, "decreaseEffectsDuration"];
91
-    $this->onRoundStart[] = [$this ,"recalculateStats"];
91
+    $this->onRoundStart[] = [$this, "recalculateStats"];
92 92
     $this->onRoundStart[] = [$this, "logRoundNumber"];
93 93
     $this->onRoundStart[] = [$this, "applyPoison"];
94 94
     $this->onRound[] = [$this, "mainStage"];
@@ -346,14 +346,14 @@  discard block
 block discarded – undo
346 346
    */
347 347
   public function selectAttackTarget(Character $attacker): ?Character {
348 348
     $enemyTeam = $this->getEnemyTeam($attacker);
349
-    $rangedWeapon = ($attacker->equipment->hasItems(["%class%" => Weapon::class, "worn" => true, "ranged" => true,]));
349
+    $rangedWeapon = ($attacker->equipment->hasItems(["%class%" => Weapon::class, "worn" => true, "ranged" => true, ]));
350 350
     if(!$rangedWeapon) {
351 351
       $rowToAttack = $enemyTeam->rowToAttack;
352 352
       if(is_null($rowToAttack)) {
353 353
         return null;
354 354
       }
355 355
       /** @var Team $enemies */
356
-      $enemies = Team::fromArray($enemyTeam->getItems(["positionRow" => $rowToAttack, "hitpoints>" => 0, "hidden" => false,]), $enemyTeam->name);
356
+      $enemies = Team::fromArray($enemyTeam->getItems(["positionRow" => $rowToAttack, "hitpoints>" => 0, "hidden" => false, ]), $enemyTeam->name);
357 357
     } else {
358 358
       $enemies = $enemyTeam;
359 359
     }
@@ -416,8 +416,8 @@  discard block
 block discarded – undo
416 416
   public function applyPoison(self $combat): void {
417 417
     /** @var Character[] $characters */
418 418
     $characters = array_merge(
419
-        $combat->team1->getItems(["hitpoints>" => 0, "poisoned!=" => false,]),
420
-        $combat->team2->getItems(["hitpoints>" => 0, "poisoned!=" => false,])
419
+        $combat->team1->getItems(["hitpoints>" => 0, "poisoned!=" => false, ]),
420
+        $combat->team2->getItems(["hitpoints>" => 0, "poisoned!=" => false, ])
421 421
     );
422 422
     foreach($characters as $character) {
423 423
       $poisonValue = $character->getStatus(Character::STATUS_POISONED);
Please login to merge, or discard this patch.
src/SkillSpecial.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
   public const TARGET_PARTY = "party";
28 28
   public const TARGET_ENEMY_PARTY = "enemy_party";
29 29
   /** @var string[] */
30
-  public const NO_STAT_TYPES = [self::TYPE_STUN, self::TYPE_POISON, self::TYPE_HIDE,];
30
+  public const NO_STAT_TYPES = [self::TYPE_STUN, self::TYPE_POISON, self::TYPE_HIDE, ];
31 31
   
32 32
   /** @var string */
33 33
   protected $type;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
   
58 58
   protected function configureOptions(OptionsResolver $resolver): void {
59 59
     parent::configureOptions($resolver);
60
-    $allStats = ["type", "stat", "value", "valueGrowth", "duration",];
60
+    $allStats = ["type", "stat", "value", "valueGrowth", "duration", ];
61 61
     $resolver->setRequired($allStats);
62 62
     $resolver->setAllowedTypes("type", "string");
63 63
     $resolver->setAllowedValues("type", function(string $value) {
Please login to merge, or discard this patch.