Passed
Push — master ( 332054...d42b40 )
by Maurício
16:48 queued 14:01
created
src/Parser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
                 $list->idx = $lastIdx;
497 497
             } elseif (empty(static::$statementParsers[$token->keyword])) {
498 498
                 // Checking if it is a known statement that can be parsed.
499
-                if (! isset(static::$statementParsers[$token->keyword])) {
499
+                if (!isset(static::$statementParsers[$token->keyword])) {
500 500
                     // A statement is considered recognized if the parser
501 501
                     // is aware that it is a statement, but it does not have
502 502
                     // a parser for it yet.
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
 
537 537
             // Handles unions.
538 538
             if (
539
-                ! empty($unionType)
539
+                !empty($unionType)
540 540
                 && ($lastStatement instanceof SelectStatement)
541 541
                 && ($statement instanceof SelectStatement)
542 542
             ) {
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
      *
624 624
      * @throws ParserException throws the exception, if strict mode is enabled.
625 625
      */
626
-    public function error($msg, Token|null $token = null, $code = 0): void
626
+    public function error($msg, Token | null $token = null, $code = 0): void
627 627
     {
628 628
         $error = new ParserException(
629 629
             Translator::gettext($msg),
Please login to merge, or discard this patch.
src/Utils/Formatter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
      *
765 765
      * @psalm-return 1|2|false
766 766
      */
767
-    public static function isClause($token): int|false
767
+    public static function isClause($token): int | false
768 768
     {
769 769
         if (
770 770
             ($token->type === Token::TYPE_KEYWORD && isset(Parser::$statementParsers[$token->keyword]))
Please login to merge, or discard this patch.