From 7a503b7fbe332453c3790ddc88d93c63dad7da2e Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Tue, 16 Apr 2019 17:59:16 +0000 Subject: [PATCH] Continue inside a switch block --- include/class.osticket.php | 2 +- include/cli/modules/i18n.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/class.osticket.php b/include/class.osticket.php index db48388e0..a8133f159 100644 --- a/include/class.osticket.php +++ b/include/class.osticket.php @@ -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']; diff --git a/include/cli/modules/i18n.php b/include/cli/modules/i18n.php index a20c8329d..733bcb68c 100644 --- a/include/cli/modules/i18n.php +++ b/include/cli/modules/i18n.php @@ -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; } } } -- GitLab