Compiler.php
protected function compileChildren(array $nodes, $indent = true, $allowInline = false)
    {

        $phtml = '';
        $this->level += $indent ? 1 : 0;

        if (count($nodes) === 1 && $allowInline) {

            $compiled = $this->compileNode($nodes[0]);
            $this->level--;

            return trim($compiled);
        }

        foreach ($nodes as $idx => $node) {

            // Skip empty text lines completely
            if ($node->type === 'text' && trim($node->value) === '')
                continue;

            $phtml .= $this->newLine().$this->indent().$this->compileNode($node);
        }
        $this->level -= $indent ? 1 : 0;

        return $phtml;
    }
protected function compileChildren(array $nodes, $indent = true, $allowInline = false)
    {

        $phtml = '';
        $this->level += $indent ? 1 : 0;

        if (count($nodes) === 1 && $allowInline) {

            $compiled = $this->compileNode($nodes[0]);
            $this->level--;

            return trim($compiled);
        }

        foreach ($nodes as $idx => $node) {

            // Skip empty text lines completely
            if ($node->type === 'text' && trim($node->value) === '')
                continue;

            $phtml .= $this->newLine().$this->indent().$this->compileNode($node);
        }
        $this->level -= $indent ? 1 : 0;

        return $phtml;
    }
protected function compileChildren ( array $ nodes , $ indent = true , $ allowInline = false ) { $ phtml = '' ; $ this -> level += $ indent ? 1 : 0 ; if ( count ( $ nodes ) === 1 && $ allowInline ) { $ compiled = $ this -> compileNode ( $ nodes [ 0 ] ) ; $ this -> level -- ; return trim ( $ compiled ) ; } foreach ( $ nodes as $ idx => $ node ) { // Skip empty text lines completely if ( $ node -> type === 'text' && trim ( $ node -> value ) === '' ) continue ; $ phtml .= $ this -> newLine ( ) . $ this -> indent ( ) . $ this -> compileNode ( $ node ) ; } $ this -> level -= $ indent ? 1 : 0 ; return $ phtml ; }
Compiles an array of nodes like they are children of some other node.

if $indent is true, the level will be increased

@param Node[] $nodes
@param bool $indent
@param bool $allowInline
@param bool $forceInline

@return string
Compiles an array of nodes like they are children of some other node .