diff options
Diffstat (limited to 'src/Token.php')
-rw-r--r-- | src/Token.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Token.php b/src/Token.php index 077c2c2..1965f8b 100644 --- a/src/Token.php +++ b/src/Token.php @@ -242,7 +242,7 @@ class Token switch ($this->type) { case self::TYPE_KEYWORD: $this->keyword = strtoupper($this->token); - if (!($this->flags & self::FLAG_KEYWORD_RESERVED)) { + if (! ($this->flags & self::FLAG_KEYWORD_RESERVED)) { // Unreserved keywords should stay the way they are because they // might represent field names. return $this->token; @@ -300,7 +300,7 @@ class Token // in PHP 5.3- the `null` parameter isn't handled correctly. $str = mb_substr( $str, - (!empty($str[1]) && ($str[1] === '@')) ? 2 : 1, + (! empty($str[1]) && ($str[1] === '@')) ? 2 : 1, mb_strlen($str), 'UTF-8' ); @@ -330,8 +330,16 @@ class Token public function getInlineToken() { return str_replace( - array("\r", "\n", "\t"), - array('\r', '\n', '\t'), + [ + "\r", + "\n", + "\t", + ], + [ + '\r', + '\n', + '\t', + ], $this->token ); } |