Completed
Push — master ( 033bf5...2a0f07 )
by Jakub
02:38
created
src/CombatBase.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
       foreach($team as $character) {
235 235
         try {
236 236
           $column++;
237
-          if($character->positionRow > 0 AND $character->positionColumn > 0) {
237
+          if($character->positionRow > 0 and $character->positionColumn > 0) {
238 238
             continue;
239 239
           }
240 240
           setPosition:
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     $characters = array_merge($combat->team1->toArray(), $combat->team2->toArray());
290 290
     foreach($characters as $character) {
291 291
       foreach($character->effects as $effect) {
292
-        if($effect->duration === CharacterEffect::DURATION_COMBAT OR is_int($effect->duration)) {
292
+        if($effect->duration === CharacterEffect::DURATION_COMBAT or is_int($effect->duration)) {
293 293
           $character->removeEffect($effect->id);
294 294
         }
295 295
       }
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     $enemyTeam = $this->getEnemyTeam($attacker);
352 352
     $rangedWeapon = false;
353 353
     foreach($attacker->equipment as $equipment) {
354
-      if($equipment instanceof Weapon AND $equipment->isWorn() AND $equipment->ranged) {
354
+      if($equipment instanceof Weapon and $equipment->isWorn() and $equipment->ranged) {
355 355
         $rangedWeapon = true;
356 356
         break;
357 357
       }
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
           continue 2;
417 417
         }
418 418
       }
419
-      throw new NotImplementedException("Action $action is not implemented.");
419
+      throw new NotImplementedException("action $action is not implemented.");
420 420
     }
421 421
   }
422 422
   
Please login to merge, or discard this patch.