Passed
Push — master ( 9ad4f6...7fb37f )
by Jakub
01:42
created
src/CombatBase.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
       foreach($team as $character) {
229 229
         try {
230 230
           $column++;
231
-          if($character->positionRow > 0 AND $character->positionColumn > 0) {
231
+          if($character->positionRow > 0 and $character->positionColumn > 0) {
232 232
             continue;
233 233
           }
234 234
           setPosition:
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     $characters = array_merge($combat->team1->toArray(), $combat->team2->toArray());
284 284
     foreach($characters as $character) {
285 285
       foreach($character->effects as $effect) {
286
-        if($effect->duration === CharacterEffect::DURATION_COMBAT OR is_int($effect->duration)) {
286
+        if($effect->duration === CharacterEffect::DURATION_COMBAT or is_int($effect->duration)) {
287 287
           $character->removeEffect($effect->id);
288 288
         }
289 289
       }
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     $enemyTeam = $this->getEnemyTeam($attacker);
346 346
     $rangedWeapon = false;
347 347
     foreach($attacker->equipment as $equipment) {
348
-      if($equipment instanceof Weapon AND $equipment->worn AND $equipment->ranged) {
348
+      if($equipment instanceof Weapon and $equipment->worn and $equipment->ranged) {
349 349
         $rangedWeapon = true;
350 350
         break;
351 351
       }
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
           continue 2;
411 411
         }
412 412
       }
413
-      throw new NotImplementedException("Action $action is not implemented.");
413
+      throw new NotImplementedException("action $action is not implemented.");
414 414
     }
415 415
   }
416 416
   
Please login to merge, or discard this patch.