src/Compiler.php
private function subCompile(&$activeConfig, $lineConfig)
    {
        if (preg_match($this->startMultiLine, $lineConfig, $container)) {
            return $this->findEndingKey(trim($container['key']), trim($container['value']), $activeConfig);
        }

        if (!preg_match($this->simpleDirective, $lineConfig, $container)) {
            throw InvalidConfigException::forSimpleDirectiveSyntaxError($lineConfig);
        }

        return $this->buildSimpleDirective(trim($container['key']), trim($container['value']));
    }
private function subCompile(&$activeConfig, $lineConfig)
    {
        if (preg_match($this->startMultiLine, $lineConfig, $container)) {
            return $this->findEndingKey(trim($container['key']), trim($container['value']), $activeConfig);
        }

        if (!preg_match($this->simpleDirective, $lineConfig, $container)) {
            throw InvalidConfigException::forSimpleDirectiveSyntaxError($lineConfig);
        }

        return $this->buildSimpleDirective(trim($container['key']), trim($container['value']));
    }
private function subCompile ( & $ activeConfig , $ lineConfig ) { if ( preg_match ( $ this -> startMultiLine , $ lineConfig , $ container ) ) { return $ this -> findEndingKey ( trim ( $ container [ 'key' ] ) , trim ( $ container [ 'value' ] ) , $ activeConfig ) ; } if ( ! preg_match ( $ this -> simpleDirective , $ lineConfig , $ container ) ) { throw InvalidConfigException :: forSimpleDirectiveSyntaxError ( $ lineConfig ) ; } return $ this -> buildSimpleDirective ( trim ( $ container [ 'key' ] ) , trim ( $ container [ 'value' ] ) ) ; }
Looks for a container directive.

@param array  $activeConfig a clean config array of directives
@param string $lineConfig   a line

@throws Exception\InvalidConfigException if a simple directive has invalid syntax

@return Directive\DirectiveInterface a directive or a container of directives
Looks for a container directive .