src/Console/Completion/ZshGenerator.php
protected function compFunction($name, $code)
    {
        $buf = new Buffer;
        $buf->appendLine("$name () {");
        $buf->indent();
        $buf->appendBuffer($code);
        $buf->unindent();
        $buf->appendLine("}");

        return $buf;
    }
protected function compFunction($name, $code)
    {
        $buf = new Buffer;
        $buf->appendLine("$name () {");
        $buf->indent();
        $buf->appendBuffer($code);
        $buf->unindent();
        $buf->appendLine("}");

        return $buf;
    }
protected function compFunction ( $ name , $ code ) { $ buf = new Buffer ; $ buf -> appendLine ( "$name () {" ) ; $ buf -> indent ( ) ; $ buf -> appendBuffer ( $ code ) ; $ buf -> unindent ( ) ; $ buf -> appendLine ( "}" ) ; return $ buf ; }
wrap zsh code with function
wrap zsh code with function