Passed
Push — master ( a4cd08...f27260 )
by Maurício
03:15 queued 12s
created
src/Parser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
     /**
356 356
      * The list of tokens that are parsed.
357 357
      */
358
-    public TokensList|null $list = null;
358
+    public TokensList | null $list = null;
359 359
 
360 360
     /**
361 361
      * List of statements parsed.
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      * @param string|UtfString|TokensList|null $list   the list of tokens to be parsed
374 374
      * @param bool                             $strict whether strict mode should be enabled or not
375 375
      */
376
-    public function __construct(string|UtfString|TokensList|null $list = null, bool $strict = false)
376
+    public function __construct(string | UtfString | TokensList | null $list = null, bool $strict = false)
377 377
     {
378 378
         if (Context::$keywords === []) {
379 379
             Context::load();
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
                 $list->idx = $lastIdx;
504 504
             } elseif (empty(self::STATEMENT_PARSERS[$token->keyword])) {
505 505
                 // Checking if it is a known statement that can be parsed.
506
-                if (! isset(self::STATEMENT_PARSERS[$token->keyword])) {
506
+                if (!isset(self::STATEMENT_PARSERS[$token->keyword])) {
507 507
                     // A statement is considered recognized if the parser
508 508
                     // is aware that it is a statement, but it does not have
509 509
                     // a parser for it yet.
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 
544 544
             // Handles unions.
545 545
             if (
546
-                ! empty($unionType)
546
+                !empty($unionType)
547 547
                 && ($lastStatement instanceof SelectStatement)
548 548
                 && ($statement instanceof SelectStatement)
549 549
             ) {
@@ -630,7 +630,7 @@  discard block
 block discarded – undo
630 630
      *
631 631
      * @throws ParserException throws the exception, if strict mode is enabled.
632 632
      */
633
-    public function error(string $msg, Token|null $token = null, int $code = 0): void
633
+    public function error(string $msg, Token | null $token = null, int $code = 0): void
634 634
     {
635 635
         $error = new ParserException(
636 636
             Translator::gettext($msg),
Please login to merge, or discard this patch.