src/Directive/BlockDirective.php
public function dump(ServerInterface $server, $spaces = 0)
    {
        $config = '';

        foreach ($this->directives as $directive) {
            $config .= $directive->dump($server, $spaces + ($this->isMainContext() ? 0 : 4));
        }

        return $this->dumpBlock($server->getDumperStartDirective(), $spaces).
            $config.
            $this->dumpBlock($server->getDumperEndDirective(), $spaces);
    }
public function dump(ServerInterface $server, $spaces = 0)
    {
        $config = '';

        foreach ($this->directives as $directive) {
            $config .= $directive->dump($server, $spaces + ($this->isMainContext() ? 0 : 4));
        }

        return $this->dumpBlock($server->getDumperStartDirective(), $spaces).
            $config.
            $this->dumpBlock($server->getDumperEndDirective(), $spaces);
    }
public function dump ( ServerInterface $ server , $ spaces = 0 ) { $ config = '' ; foreach ( $ this -> directives as $ directive ) { $ config .= $ directive -> dump ( $ server , $ spaces + ( $ this -> isMainContext ( ) ? 0 : 4 ) ) ; } return $ this -> dumpBlock ( $ server -> getDumperStartDirective ( ) , $ spaces ) . $ config . $ this -> dumpBlock ( $ server -> getDumperEndDirective ( ) , $ spaces ) ; }
Dumps the directive respecting a server syntax.

@param ServerInterface $server a server instance
@param int             $spaces the indentation spaces

@return string the dumped directive
Dumps the directive respecting a server syntax .