@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | { |
| 189 | 189 | $this->str = $str; |
| 190 | 190 | $this->byteLen = mb_strlen($str, '8bit'); |
| 191 | - if (! mb_check_encoding($str, 'UTF-8')) { |
|
| 191 | + if (!mb_check_encoding($str, 'UTF-8')) { |
|
| 192 | 192 | $this->charLen = 0; |
| 193 | 193 | } else { |
| 194 | 194 | $this->charLen = mb_strlen($str, 'UTF-8'); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * |
| 211 | 211 | * @param int $offset the offset to be returned |
| 212 | 212 | */ |
| 213 | - public function offsetGet($offset): string|null |
|
| 213 | + public function offsetGet($offset): string | null |
|
| 214 | 214 | { |
| 215 | 215 | if (($offset < 0) || ($offset >= $this->charLen)) { |
| 216 | 216 | return null; |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | // Use the default ASCII map as queries are mostly ASCII chars |
| 287 | 287 | // ord($byte) has a performance cost |
| 288 | 288 | |
| 289 | - if (! isset(static::$asciiMap[$byte])) { |
|
| 289 | + if (!isset(static::$asciiMap[$byte])) { |
|
| 290 | 290 | // Complete the cache with missing items |
| 291 | 291 | static::$asciiMap[$byte] = ord($byte); |
| 292 | 292 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @var ArrayObj[]|null |
| 79 | 79 | */ |
| 80 | - public array|null $values = null; |
|
| 80 | + public array | null $values = null; |
|
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * If SET clause is present |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * |
| 86 | 86 | * @var SetOperation[]|null |
| 87 | 87 | */ |
| 88 | - public array|null $set = null; |
|
| 88 | + public array | null $set = null; |
|
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * If SELECT clause is present |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * |
| 110 | 110 | * @var SetOperation[]|null |
| 111 | 111 | */ |
| 112 | - public array|null $onDuplicateSet = null; |
|
| 112 | + public array | null $onDuplicateSet = null; |
|
| 113 | 113 | |
| 114 | 114 | public function build(): string |
| 115 | 115 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * Gets the previous token. Skips any irrelevant token (whitespaces and |
| 115 | 115 | * comments). |
| 116 | 116 | */ |
| 117 | - public function getPrevious(): Token|null |
|
| 117 | + public function getPrevious(): Token | null |
|
| 118 | 118 | { |
| 119 | 119 | for (; $this->idx >= 0; --$this->idx) { |
| 120 | 120 | if ( |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function getPreviousOfType($type) |
| 139 | 139 | { |
| 140 | - if (! is_array($type)) { |
|
| 140 | + if (!is_array($type)) { |
|
| 141 | 141 | $type = [$type]; |
| 142 | 142 | } |
| 143 | 143 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function getNextOfType($type) |
| 161 | 161 | { |
| 162 | - if (! is_array($type)) { |
|
| 162 | + if (!is_array($type)) { |
|
| 163 | 163 | $type = [$type]; |
| 164 | 164 | } |
| 165 | 165 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * @param int $type the type of the token |
| 198 | 198 | * @param int $flag the flag of the token |
| 199 | 199 | */ |
| 200 | - public function getNextOfTypeAndFlag(int $type, int $flag): Token|null |
|
| 200 | + public function getNextOfTypeAndFlag(int $type, int $flag): Token | null |
|
| 201 | 201 | { |
| 202 | 202 | for (; $this->idx < $this->count; ++$this->idx) { |
| 203 | 203 | if (($this->tokens[$this->idx]->type === $type) && ($this->tokens[$this->idx]->flags === $flag)) { |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * |
| 229 | 229 | * @param int $offset the offset to be returned |
| 230 | 230 | */ |
| 231 | - public function offsetGet($offset): Token|null |
|
| 231 | + public function offsetGet($offset): Token | null |
|
| 232 | 232 | { |
| 233 | 233 | return $offset < $this->count ? $this->tokens[$offset] : null; |
| 234 | 234 | } |