Skip to content

Commit

Permalink
Ref #168 - Coding standard fixes
Browse files Browse the repository at this point in the history
Pull-request: #344

Signed-off-by: William Desportes <[email protected]>
  • Loading branch information
williamdes committed Aug 16, 2021
1 parent 6ad0bb6 commit cf9cb91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Components/AlterOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ public static function parse(Parser $parser, TokensList $list, array $options =
if ($token->value === 'CHARACTER SET') {
// Reverting the changes we made in the beginning
$list->idx = $currentTokenID;
} else if ($token->value === 'SET' && $nextToken !== null && $nextToken->value === '(') {
} elseif ($token->value === 'SET' && $nextToken !== null && $nextToken->value === '(') {
// To avoid adding the tokens between the SET() parentheses to the unknown tokens
$list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, ')');
} else if ($token->value === 'SET' && $nextToken !== null && $nextToken->value === 'DEFAULT') {
} elseif ($token->value === 'SET' && $nextToken !== null && $nextToken->value === 'DEFAULT') {
// to avoid adding the `DEFAULT` token to the unknown tokens.
++$list->idx;
} else {
Expand All @@ -311,7 +311,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
);
break;
}

} elseif ((array_key_exists($array_key, self::$DB_OPTIONS)
|| array_key_exists($array_key, self::$TABLE_OPTIONS))
&& ! self::checkIfColumnDefinitionKeyword($array_key)
Expand Down

0 comments on commit cf9cb91

Please sign in to comment.