Example #1
0
 protected function verifyStack()
 {
     // If the stack is not empty, we have a problem
     if (!$this->stack->isEmpty()) {
         // Get the first remaining token into the stack and throw an exception
         throw ExceptionFactory::createTagNotClosed(__FILE__, __LINE__, $this->scanner->getFile()->getFileName(), $this->stack->top());
     }
 }