@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | break; |
134 | 134 | } |
135 | 135 | } elseif ($state === 2) { |
136 | - if (! ($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS')) { |
|
136 | + if (!($token->type === Token::TYPE_KEYWORD && $token->keyword === 'AS')) { |
|
137 | 137 | $parser->error('AS keyword was expected.', $token); |
138 | 138 | break; |
139 | 139 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $list->idx++; // Ignore the current token |
146 | 146 | $nextKeyword = $list->getNext(); |
147 | 147 | |
148 | - if (! ($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) { |
|
148 | + if (!($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) { |
|
149 | 149 | $parser->error('Subquery of the CTE was expected.', $token); |
150 | 150 | $list->idx = $idxBeforeGetNext; |
151 | 151 | 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 |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | } else { |
498 | 498 | // Checking if it is a known statement that can be parsed. |
499 | 499 | if (empty(static::$statementParsers[$token->keyword])) { |
500 | - if (! isset(static::$statementParsers[$token->keyword])) { |
|
500 | + if (!isset(static::$statementParsers[$token->keyword])) { |
|
501 | 501 | // A statement is considered recognized if the parser |
502 | 502 | // is aware that it is a statement, but it does not have |
503 | 503 | // a parser for it yet. |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | |
539 | 539 | // Handles unions. |
540 | 540 | if ( |
541 | - ! empty($unionType) |
|
541 | + !empty($unionType) |
|
542 | 542 | && ($lastStatement instanceof SelectStatement) |
543 | 543 | && ($statement instanceof SelectStatement) |
544 | 544 | ) { |
@@ -625,7 +625,7 @@ discard block |
||
625 | 625 | * |
626 | 626 | * @throws ParserException throws the exception, if strict mode is enabled. |
627 | 627 | */ |
628 | - public function error($msg, Token|null $token = null, $code = 0): void |
|
628 | + public function error($msg, Token | null $token = null, $code = 0): void |
|
629 | 629 | { |
630 | 630 | $error = new ParserException( |
631 | 631 | Translator::gettext($msg), |