Skip to content
Snippets Groups Projects
Commit 7a503b7f authored by Peter Rotich's avatar Peter Rotich
Browse files

Continue inside a switch block

parent 03586517
No related branches found
No related tags found
No related merge requests found
......@@ -436,7 +436,7 @@ class osTicket {
switch ($info['v']) {
case '1':
if ($major && $info['m'] && $info['m'] != $major)
continue;
continue 2;
if ($product == 'core' && GIT_VERSION == '$git')
return $info['c'];
return $info['V'];
......
......@@ -417,7 +417,7 @@ class i18n_Compiler extends Module {
break;
case T_WHITESPACE:
// noop
continue;
continue 2;
case T_STRING_VARNAME:
case T_NUM_STRING:
case T_ENCAPSED_AND_WHITESPACE:
......@@ -472,7 +472,7 @@ class i18n_Compiler extends Module {
while (list(,$T) = each($tokens)) {
switch ($T[0]) {
case T_WHITESPACE:
continue;
continue 2;
case '(':
return $this->__read_args($tokens, $args);
default:
......@@ -500,7 +500,7 @@ class i18n_Compiler extends Module {
break;
}
if (!isset($funcs[$T[1]]))
continue;
continue 2;
$constants = $funcs[$T[1]];
if ($info = $this->__get_func_args($tokens, $constants))
$T_funcs[] = $info;
......@@ -519,7 +519,7 @@ class i18n_Compiler extends Module {
case '@trans':
$translate = true;
default:
continue;
continue 2;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment