@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * The current status of the parser. |
64 | 64 | */ |
65 | - public int|null $status = null; |
|
65 | + public int | null $status = null; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * The last incomplete query that was extracted. |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * |
110 | 110 | * @param bool $end whether the end of the buffer was reached |
111 | 111 | */ |
112 | - public function extract(bool $end = false): string|false |
|
112 | + public function extract(bool $end = false): string | false |
|
113 | 113 | { |
114 | 114 | /** |
115 | 115 | * The last parsed position. |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | // Parsing the delimiter. |
303 | 303 | $delimiter = ''; |
304 | - while (($i < $len) && (! Context::isWhitespace($this->query[$i]))) { |
|
304 | + while (($i < $len) && (!Context::isWhitespace($this->query[$i]))) { |
|
305 | 305 | $delimiter .= $this->query[$i++]; |
306 | 306 | } |
307 | 307 | |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | |
317 | 317 | // Whether this statement should be returned or not. |
318 | 318 | $ret = ''; |
319 | - if (! empty($this->options['parse_delimiter'])) { |
|
319 | + if (!empty($this->options['parse_delimiter'])) { |
|
320 | 320 | // Appending the `DELIMITER` statement that was just |
321 | 321 | // found to the current statement. |
322 | 322 | $ret = trim( |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | $ret = $this->current; |
360 | 360 | |
361 | 361 | // If needed, adds a delimiter at the end of the statement. |
362 | - if (! empty($this->options['add_delimiter'])) { |
|
362 | + if (!empty($this->options['add_delimiter'])) { |
|
363 | 363 | $ret .= $this->delimiter; |
364 | 364 | } |
365 | 365 |
@@ -355,7 +355,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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), |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function load(): void |
31 | 31 | { |
32 | - if (! isset(self::$loader)) { |
|
32 | + if (!isset(self::$loader)) { |
|
33 | 33 | // Create loader object |
34 | 34 | self::$loader = new Loader(); |
35 | 35 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public static function gettext(string $msgid): string |
64 | 64 | { |
65 | - if (! class_exists(Loader::class, true)) { |
|
65 | + if (!class_exists(Loader::class, true)) { |
|
66 | 66 | return $msgid; |
67 | 67 | } |
68 | 68 |