/** * Parses a sequence of none php code tokens and returns the token type of * the next token. * * @return integer * @since 0.9.12 */ private function parseNonePhpCode() { $this->consumeToken(Tokens::T_CLOSE_TAG); $this->tokenStack->push(); while (($tokenType = $this->tokenizer->peek()) !== Tokenizer::T_EOF) { switch ($tokenType) { case Tokens::T_OPEN_TAG: case Tokens::T_OPEN_TAG_WITH_ECHO: $this->consumeToken($tokenType); $tokenType = $this->tokenizer->peek(); break 2; default: $this->consumeToken($tokenType); break; } } $this->tokenStack->pop(); return $tokenType; }