@@ -69,17 +69,17 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @see Statement::$statementOptions |
| 71 | 71 | */ |
| 72 | - public OptionsArray|null $options = null; |
|
| 72 | + public OptionsArray | null $options = null; |
|
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * The index of the first token used in this statement. |
| 76 | 76 | */ |
| 77 | - public int|null $first = null; |
|
| 77 | + public int | null $first = null; |
|
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | 80 | * The index of the last token used in this statement. |
| 81 | 81 | */ |
| 82 | - public int|null $last = null; |
|
| 82 | + public int | null $last = null; |
|
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * @param Parser|null $parser the instance that requests parsing |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * |
| 88 | 88 | * @throws ParserException |
| 89 | 89 | */ |
| 90 | - public function __construct(Parser|null $parser = null, TokensList|null $list = null) |
|
| 90 | + public function __construct(Parser | null $parser = null, TokensList | null $list = null) |
|
| 91 | 91 | { |
| 92 | 92 | if (($parser === null) || ($list === null)) { |
| 93 | 93 | return; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | // Checking if this field was already built. |
| 134 | 134 | if ($type & self::ADD_CLAUSE) { |
| 135 | - if (! empty($built[$field])) { |
|
| 135 | + if (!empty($built[$field])) { |
|
| 136 | 136 | continue; |
| 137 | 137 | } |
| 138 | 138 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | // Checking if the result of the builder should be added. |
| 148 | - if (! ($type & self::ADD_CLAUSE)) { |
|
| 148 | + if (!($type & self::ADD_CLAUSE)) { |
|
| 149 | 149 | continue; |
| 150 | 150 | } |
| 151 | 151 | |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | isset(Parser::STATEMENT_PARSERS[$token->keyword]) |
| 305 | 305 | && Parser::STATEMENT_PARSERS[$token->keyword] !== '' |
| 306 | 306 | ) { |
| 307 | - if (static::$clauses !== [] && is_string($token->value) && ! isset(static::$clauses[$token->value])) { |
|
| 307 | + if (static::$clauses !== [] && is_string($token->value) && !isset(static::$clauses[$token->value])) { |
|
| 308 | 308 | // Some keywords (e.g. `SET`) may be the beginning of a |
| 309 | 309 | // statement and a clause. |
| 310 | 310 | // If such keyword was found, and it cannot be a clause of |
@@ -317,8 +317,8 @@ discard block |
||
| 317 | 317 | break; |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | - if (! $parsedOptions) { |
|
| 321 | - if (! array_key_exists((string) $token->value, static::$statementOptions)) { |
|
| 320 | + if (!$parsedOptions) { |
|
| 321 | + if (!array_key_exists((string) $token->value, static::$statementOptions)) { |
|
| 322 | 322 | // Skipping keyword because if it is not a option. |
| 323 | 323 | ++$list->idx; |
| 324 | 324 | } |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | if ($minJoin === 0 && $containsJoinClause) { |
| 479 | 479 | // First JOIN clause is detected |
| 480 | 480 | $minJoin = $maxJoin = $clauseStartIdx; |
| 481 | - } elseif ($minJoin !== 0 && ! $containsJoinClause) { |
|
| 481 | + } elseif ($minJoin !== 0 && !$containsJoinClause) { |
|
| 482 | 482 | // After a previous JOIN clause, a non-JOIN clause has been detected |
| 483 | 483 | $maxJoin = $lastIdx; |
| 484 | 484 | } elseif ($maxJoin < $clauseStartIdx && $containsJoinClause) { |