private function processClosingTag()
{
if ($this->tokens[$this->id + 1][0] === T_INLINE_HTML && in_array($this->tokens[$this->id + 2][0], array(T_OPEN_TAG, T_OPEN_TAG_WITH_ECHO))) {
++$this->id;
$this->processInlineHtml();
if ($this->tokens[$this->id + 1][0] === T_OPEN_TAG_WITH_ECHO) {
$this->processOpenWithEcho();
if ($this->tokens[$this->id + 1][0] !== T_SEMICOLON) {
$this->processSemicolon();
}
} else {
++$this->id;
// set to opening tag
}
} elseif (in_array($this->tokens[$this->id + 1][0], array(T_OPEN_TAG, T_OPEN_TAG_WITH_ECHO))) {
if ($this->tokens[$this->id + 1][0] === T_OPEN_TAG_WITH_ECHO) {
$this->processOpenWithEcho();
if ($this->tokens[$this->id + 1][0] !== T_SEMICOLON) {
$this->processSemicolon();
}
} else {
++$this->id;
// set to opening tag
}
} else {
if ($this->tokens[$this->id - 1][0] === T_OPEN_TAG) {
$voidId = $this->addAtomVoid();
$this->addToSequence($voidId);
}
++$this->id;
}
}