Skip to content

Commit

Permalink
fix(aowow): fix warnings, switch continue => break (Sarjuuk#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias authored Feb 2, 2020
1 parent 88669c0 commit 9b1a992
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion includes/community.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static function getSubjects()
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
case TYPE_SOUND: $obj = new SoundList($cnd); break;
case TYPE_ICON: $obj = new IconList($cnd); break;
default: continue;
default: break;
}

foreach ($obj->iterate() as $id => $__)
Expand Down
7 changes: 4 additions & 3 deletions includes/utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,9 @@ public static function getServerConditions($srcType, $srcGroup = null, $srcEntry
$c['ConditionValue1'] = $zone->getField('id');
break;
}
else
continue;
else {
break;
}
}
case CND_ZONEID: // 4
case CND_AREAID: // 23
Expand Down Expand Up @@ -1077,7 +1078,7 @@ public static function getServerConditions($srcType, $srcGroup = null, $srcEntry
else if ($c['ConditionValue1'] == 67) // Horde
$c['ConditionValue1'] = 2;
else
continue;
break;
}

$res = [$c['NegativeCondition'] ? -$c['ConditionTypeOrReference'] : $c['ConditionTypeOrReference']];
Expand Down
2 changes: 1 addition & 1 deletion pages/genericPage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ private function applyGlobals() // lookup jsGlobals from
case TYPE_USER: $obj = new UserList($cnd); break;
case TYPE_EMOTE: $obj = new EmoteList($cnd); break;
case TYPE_ENCHANTMENT: $obj = new EnchantmentList($cnd); break;
default: continue;
default: break;
}

$this->extendGlobalData($obj->getJSGlobals(GLOBALINFO_SELF));
Expand Down

0 comments on commit 9b1a992

Please sign in to comment.