@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | } elseif (($token->value === ',') && ($brackets === 0)) { |
423 | 423 | break; |
424 | 424 | } |
425 | - } elseif (! self::checkIfTokenQuotedSymbol($token)) { |
|
425 | + } elseif (!self::checkIfTokenQuotedSymbol($token)) { |
|
426 | 426 | // If the current token is "SET" or "ENUM", we want to avoid the token between their parenthesis in |
427 | 427 | // the unknown tokens. |
428 | 428 | if (in_array($token->value, ['SET', 'ENUM'], true)) { |
@@ -441,7 +441,7 @@ discard block |
||
441 | 441 | ); |
442 | 442 | break; |
443 | 443 | } |
444 | - } elseif (! empty(Parser::$statementParsers[$arrayKey])) { |
|
444 | + } elseif (!empty(Parser::$statementParsers[$arrayKey])) { |
|
445 | 445 | // We have reached the end of ALTER operation and suddenly found |
446 | 446 | // a start to new statement, but have not found a delimiter between them |
447 | 447 | $parser->error( |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | } elseif ( |
453 | 453 | (array_key_exists($arrayKey, self::$databaseOptions) |
454 | 454 | || array_key_exists($arrayKey, self::$tableOptions)) |
455 | - && ! self::checkIfColumnDefinitionKeyword($arrayKey) |
|
455 | + && !self::checkIfColumnDefinitionKeyword($arrayKey) |
|
456 | 456 | ) { |
457 | 457 | // This alter operation has finished, which means a comma |
458 | 458 | // was missing before start of new alter operation |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | if ($state === 0) { |
115 | - if ($token->type !== Token::TYPE_NONE || ! preg_match('/^[a-zA-Z0-9_$]+$/', $token->token)) { |
|
115 | + if ($token->type !== Token::TYPE_NONE || !preg_match('/^[a-zA-Z0-9_$]+$/', $token->token)) { |
|
116 | 116 | $parser->error('The name of the CTE was expected.', $token); |
117 | 117 | break; |
118 | 118 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | break; |
137 | 137 | } |
138 | 138 | } elseif ($state === 2) { |
139 | - if (! ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS')) { |
|
139 | + if (!($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS')) { |
|
140 | 140 | $parser->error('AS keyword was expected.', $token); |
141 | 141 | break; |
142 | 142 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $list->idx++; // Ignore the current token |
149 | 149 | $nextKeyword = $list->getNext(); |
150 | 150 | |
151 | - if (! ($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) { |
|
151 | + if (!($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) { |
|
152 | 152 | $parser->error('Subquery of the CTE was expected.', $token); |
153 | 153 | $list->idx = $idxBeforeGetNext; |
154 | 154 | break; |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | /** |
296 | 296 | * Get tokens within the WITH expression to use them in another parser |
297 | 297 | */ |
298 | - private function getSubTokenList(TokensList $list): ParserException|TokensList |
|
298 | + private function getSubTokenList(TokensList $list): ParserException | TokensList |
|
299 | 299 | { |
300 | 300 | $idx = $list->idx; |
301 | 301 | $token = $list->tokens[$list->idx]; |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | } |
312 | 312 | |
313 | 313 | ++$list->idx; |
314 | - if (! isset($list->tokens[$list->idx])) { |
|
314 | + if (!isset($list->tokens[$list->idx])) { |
|
315 | 315 | break; |
316 | 316 | } |
317 | 317 |