@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $len = $str instanceof UtfString ? $str->length() : strlen($str); |
| 184 | 184 | |
| 185 | 185 | // For multi-byte strings, a new instance of `UtfString` is initialized. |
| 186 | - if (! $str instanceof UtfString && $len !== mb_strlen($str, 'UTF-8')) { |
|
| 186 | + if (!$str instanceof UtfString && $len !== mb_strlen($str, 'UTF-8')) { |
|
| 187 | 187 | $str = new UtfString($str); |
| 188 | 188 | } |
| 189 | 189 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | $this->strict = $strict; |
| 194 | 194 | |
| 195 | 195 | // Setting the delimiter. |
| 196 | - $this->setDelimiter(! empty($delimiter) ? $delimiter : static::$defaultDelimiter); |
|
| 196 | + $this->setDelimiter(!empty($delimiter) ? $delimiter : static::$defaultDelimiter); |
|
| 197 | 197 | |
| 198 | 198 | $this->lex(); |
| 199 | 199 | } |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | $delimiterLen = 0; |
| 322 | 322 | while ( |
| 323 | 323 | ++$this->last < $this->len |
| 324 | - && ! Context::isWhitespace($this->str[$this->last]) |
|
| 324 | + && !Context::isWhitespace($this->str[$this->last]) |
|
| 325 | 325 | && $delimiterLen < 15 |
| 326 | 326 | ) { |
| 327 | 327 | $this->delimiter .= $this->str[$this->last]; |
@@ -380,8 +380,8 @@ discard block |
||
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | if ( |
| 383 | - ($next->type !== Token::TYPE_KEYWORD || ! in_array($next->value, ['FROM', 'USING'], true)) |
|
| 384 | - && ($next->type !== Token::TYPE_OPERATOR || ! in_array($next->value, [',', ')'], true)) |
|
| 383 | + ($next->type !== Token::TYPE_KEYWORD || !in_array($next->value, ['FROM', 'USING'], true)) |
|
| 384 | + && ($next->type !== Token::TYPE_OPERATOR || !in_array($next->value, [',', ')'], true)) |
|
| 385 | 385 | ) { |
| 386 | 386 | continue; |
| 387 | 387 | } |
@@ -419,10 +419,10 @@ discard block |
||
| 419 | 419 | $next = $this->list->getNext(); |
| 420 | 420 | if ( |
| 421 | 421 | ($next->type !== Token::TYPE_KEYWORD |
| 422 | - || ! in_array($next->value, $this->keywordNameIndicators, true) |
|
| 422 | + || !in_array($next->value, $this->keywordNameIndicators, true) |
|
| 423 | 423 | ) |
| 424 | 424 | && ($next->type !== Token::TYPE_OPERATOR |
| 425 | - || ! in_array($next->value, $this->operatorNameIndicators, true) |
|
| 425 | + || !in_array($next->value, $this->operatorNameIndicators, true) |
|
| 426 | 426 | ) |
| 427 | 427 | && ($next->value !== null) |
| 428 | 428 | ) { |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | $token .= $this->str[$this->last]; |
| 506 | 506 | $flags = Context::isKeyword($token); |
| 507 | 507 | |
| 508 | - if (($this->last + 1 !== $this->len && ! Context::isSeparator($this->str[$this->last + 1])) || ! $flags) { |
|
| 508 | + if (($this->last + 1 !== $this->len && !Context::isSeparator($this->str[$this->last + 1])) || !$flags) { |
|
| 509 | 509 | continue; |
| 510 | 510 | } |
| 511 | 511 | |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | $token .= $this->str[$this->last]; |
| 594 | 594 | $flags = Context::isOperator($token); |
| 595 | 595 | |
| 596 | - if (! $flags) { |
|
| 596 | + if (!$flags) { |
|
| 597 | 597 | continue; |
| 598 | 598 | } |
| 599 | 599 | |
@@ -615,7 +615,7 @@ discard block |
||
| 615 | 615 | { |
| 616 | 616 | $token = $this->str[$this->last]; |
| 617 | 617 | |
| 618 | - if (! Context::isWhitespace($token)) { |
|
| 618 | + if (!Context::isWhitespace($token)) { |
|
| 619 | 619 | return null; |
| 620 | 620 | } |
| 621 | 621 | |
@@ -855,7 +855,7 @@ discard block |
||
| 855 | 855 | } elseif ($state === 2) { |
| 856 | 856 | $flags |= Token::FLAG_NUMBER_HEX; |
| 857 | 857 | if ( |
| 858 | - ! ( |
|
| 858 | + !( |
|
| 859 | 859 | ($this->str[$this->last] >= '0' && $this->str[$this->last] <= '9') |
| 860 | 860 | || ($this->str[$this->last] >= 'A' && $this->str[$this->last] <= 'F') |
| 861 | 861 | || ($this->str[$this->last] >= 'a' && $this->str[$this->last] <= 'f') |
@@ -958,7 +958,7 @@ discard block |
||
| 958 | 958 | $token = $this->str[$this->last]; |
| 959 | 959 | $flags = Context::isString($token); |
| 960 | 960 | |
| 961 | - if (! $flags && $token !== $quote) { |
|
| 961 | + if (!$flags && $token !== $quote) { |
|
| 962 | 962 | return null; |
| 963 | 963 | } |
| 964 | 964 | |
@@ -1010,7 +1010,7 @@ discard block |
||
| 1010 | 1010 | $token = $this->str[$this->last]; |
| 1011 | 1011 | $flags = Context::isSymbol($token); |
| 1012 | 1012 | |
| 1013 | - if (! $flags) { |
|
| 1013 | + if (!$flags) { |
|
| 1014 | 1014 | return null; |
| 1015 | 1015 | } |
| 1016 | 1016 | |
@@ -1061,7 +1061,7 @@ discard block |
||
| 1061 | 1061 | return null; |
| 1062 | 1062 | } |
| 1063 | 1063 | |
| 1064 | - while (++$this->last < $this->len && ! Context::isSeparator($this->str[$this->last])) { |
|
| 1064 | + while (++$this->last < $this->len && !Context::isSeparator($this->str[$this->last])) { |
|
| 1065 | 1065 | $token .= $this->str[$this->last]; |
| 1066 | 1066 | |
| 1067 | 1067 | // Test if end of token equals the current delimiter. If so, remove it from the token. |