Skip to content

Commit cf9cb91

Browse files
committed
Ref #168 - Coding standard fixes
Pull-request: #344 Signed-off-by: William Desportes <[email protected]>
1 parent 6ad0bb6 commit cf9cb91

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Components/AlterOperation.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ public static function parse(Parser $parser, TokensList $list, array $options =
296296
if ($token->value === 'CHARACTER SET') {
297297
// Reverting the changes we made in the beginning
298298
$list->idx = $currentTokenID;
299-
} else if ($token->value === 'SET' && $nextToken !== null && $nextToken->value === '(') {
299+
} elseif ($token->value === 'SET' && $nextToken !== null && $nextToken->value === '(') {
300300
// To avoid adding the tokens between the SET() parentheses to the unknown tokens
301301
$list->getNextOfTypeAndValue(Token::TYPE_OPERATOR, ')');
302-
} else if ($token->value === 'SET' && $nextToken !== null && $nextToken->value === 'DEFAULT') {
302+
} elseif ($token->value === 'SET' && $nextToken !== null && $nextToken->value === 'DEFAULT') {
303303
// to avoid adding the `DEFAULT` token to the unknown tokens.
304304
++$list->idx;
305305
} else {
@@ -311,7 +311,6 @@ public static function parse(Parser $parser, TokensList $list, array $options =
311311
);
312312
break;
313313
}
314-
315314
} elseif ((array_key_exists($array_key, self::$DB_OPTIONS)
316315
|| array_key_exists($array_key, self::$TABLE_OPTIONS))
317316
&& ! self::checkIfColumnDefinitionKeyword($array_key)

0 commit comments

Comments
 (0)