@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | // The options of a clause should stay on the same line and everything that follows. |
| 437 | 437 | if ( |
| 438 | 438 | $this->options['parts_newline'] |
| 439 | - && ! $formattedOptions |
|
| 439 | + && !$formattedOptions |
|
| 440 | 440 | && empty(self::$inlineClauses[$lastClause]) |
| 441 | 441 | && ( |
| 442 | 442 | $curr->type !== Token::TYPE_KEYWORD |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | end($blocksLineEndings) === true |
| 497 | 497 | || ( |
| 498 | 498 | empty(self::$inlineClauses[$lastClause]) |
| 499 | - && ! $shortGroup |
|
| 499 | + && !$shortGroup |
|
| 500 | 500 | && $this->options['parts_newline'] |
| 501 | 501 | ) |
| 502 | 502 | ) { |
@@ -532,7 +532,7 @@ discard block |
||
| 532 | 532 | $lineEnded = false; |
| 533 | 533 | } elseif ( |
| 534 | 534 | $prev->keyword === 'DELIMITER' |
| 535 | - || ! ( |
|
| 535 | + || !( |
|
| 536 | 536 | ($prev->type === Token::TYPE_OPERATOR && ($prev->value === '.' || $prev->value === '(')) |
| 537 | 537 | // No space after . ( |
| 538 | 538 | || ($curr->type === Token::TYPE_OPERATOR |
@@ -648,12 +648,12 @@ discard block |
||
| 648 | 648 | static $prev; |
| 649 | 649 | |
| 650 | 650 | foreach ($this->options['formats'] as $format) { |
| 651 | - if ($token->type !== $format['type'] || ! (($token->flags & $format['flags']) === $format['flags'])) { |
|
| 651 | + if ($token->type !== $format['type'] || !(($token->flags & $format['flags']) === $format['flags'])) { |
|
| 652 | 652 | continue; |
| 653 | 653 | } |
| 654 | 654 | |
| 655 | 655 | // Running transformation function. |
| 656 | - if (! empty($format['function'])) { |
|
| 656 | + if (!empty($format['function'])) { |
|
| 657 | 657 | $func = $format['function']; |
| 658 | 658 | $text = $func($text); |
| 659 | 659 | } |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | $list->idx = $lastIdx; |
| 499 | 499 | } elseif (empty(static::$statementParsers[$token->keyword])) { |
| 500 | 500 | // Checking if it is a known statement that can be parsed. |
| 501 | - if (! isset(static::$statementParsers[$token->keyword])) { |
|
| 501 | + if (!isset(static::$statementParsers[$token->keyword])) { |
|
| 502 | 502 | // A statement is considered recognized if the parser |
| 503 | 503 | // is aware that it is a statement, but it does not have |
| 504 | 504 | // 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 | ) { |
@@ -627,7 +627,7 @@ discard block |
||
| 627 | 627 | * |
| 628 | 628 | * @throws ParserException throws the exception, if strict mode is enabled. |
| 629 | 629 | */ |
| 630 | - public function error($msg, Token|null $token = null, $code = 0) |
|
| 630 | + public function error($msg, Token | null $token = null, $code = 0) |
|
| 631 | 631 | { |
| 632 | 632 | $error = new ParserException( |
| 633 | 633 | Translator::gettext($msg), |