Skip to content

Commit

Permalink
MDI-1420 Remove continue in switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
seergiue authored and kpicaza committed Nov 26, 2021
1 parent 7c73e86 commit 8f32b06
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Php-Sql-Parser/php-sql-parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,6 @@ private function process_from(&$tokens) {
}
$parseInfo['alias']['name'] = $str;
$parseInfo['alias']['base_expr'] = trim($parseInfo['alias']['base_expr']);
continue;

case 'INDEX':
if ($token_category == 'CREATE') {
Expand All @@ -1240,14 +1239,10 @@ private function process_from(&$tokens) {
case 'INNER':
case 'OUTER':
$parseInfo['token_count']++;
continue;
break;

case 'FOR':
$parseInfo['token_count']++;
$skip_next = true;
continue;
break;

case 'LEFT':
case 'RIGHT':
Expand All @@ -1270,7 +1265,7 @@ private function process_from(&$tokens) {

default:
if ($upper === "") {
continue; # ends the switch statement!
break; # ends the switch statement!
}

if ($parseInfo['token_count'] === 0) {
Expand Down

0 comments on commit 8f32b06

Please sign in to comment.