src/Compiler.php
public function doCompile($activeConfig, $context = 'main', $value = '')
    {
        $tempConfig = [];

        while (!empty($activeConfig)) {
            $lineConfig = array_shift($activeConfig);
            $tempConfig[] = $this->subCompile($activeConfig, $lineConfig);
        }

        return $this->buildBlockDirective($context, $value, $tempConfig);
    }
public function doCompile($activeConfig, $context = 'main', $value = '')
    {
        $tempConfig = [];

        while (!empty($activeConfig)) {
            $lineConfig = array_shift($activeConfig);
            $tempConfig[] = $this->subCompile($activeConfig, $lineConfig);
        }

        return $this->buildBlockDirective($context, $value, $tempConfig);
    }
public function doCompile ( $ activeConfig , $ context = 'main' , $ value = '' ) { $ tempConfig = [ ] ; while ( ! empty ( $ activeConfig ) ) { $ lineConfig = array_shift ( $ activeConfig ) ; $ tempConfig [ ] = $ this -> subCompile ( $ activeConfig , $ lineConfig ) ; } return $ this -> buildBlockDirective ( $ context , $ value , $ tempConfig ) ; }
Does a nested array of lines depending on container Directives.

@param array  $activeConfig a clean config array of lines
@param string $context      the context name
@param string $value        an optional context value

@return Directive\BlockDirective a full context of directives
Does a nested array of lines depending on container Directives .