diff --git a/src/Tokens/PHP.php b/src/Tokens/PHP.php index fe985de..47ef61d 100644 --- a/src/Tokens/PHP.php +++ b/src/Tokens/PHP.php @@ -82,10 +82,7 @@ class PHP { [$type, $rawChar, $currentLine] = $token; $char = tabs_to_spaces($rawChar); - if ($currentLine !== $this->lineNum) - { - $this->lineNum = $currentLine; - } + $this->lineNum = $currentLine; $current = [ 'type' => $type, @@ -100,11 +97,6 @@ class PHP { $this->tokens[$this->lineNum][] = $current; $this->lineNum++; - if ( ! array_key_exists($this->lineNum, $this->tokens)) - { - $this->tokens[$this->lineNum] = []; - } - return; } @@ -124,11 +116,6 @@ class PHP { { $nextLine++; - if ( ! array_key_exists($nextLine, $this->tokens)) - { - $tokens[$nextLine] = []; - } - if ( ! empty($char)) { $this->processStringToken($char, $nextLine);