Пример #1
0
 public function hasStatements()
 {
     if (!$this->parent instanceof Root) {
         return true;
     }
     return $this->parent->hasChilds();
 }
 protected function shouldIndentBeforeClose(NodeAbstract $node)
 {
     if ($node instanceof Tag) {
         if ($node->getFlags() & Tag::FLAG_REMOVE_INNER_WHITESPACES) {
             return false;
         }
         if (!$node->hasChilds()) {
             return false;
         }
     }
     if (null !== ($child = $this->getLastChildIfTag($node))) {
         if ($child->getFlags() & Tag::FLAG_REMOVE_OUTER_WHITESPACES) {
             return false;
         }
     }
     return true;
 }