Go\Proxy\AbstractProxy::indent PHP Method

indent() protected method

Indent block of code
protected indent ( string $text ) : string
$text string Non-indented text
return string Indented text
    protected function indent($text)
    {
        $pad = str_pad('', $this->indent, ' ');
        $lines = array_map(function ($line) use($pad) {
            return $pad . $line;
        }, explode("\n", $text));
        return join("\n", $lines);
    }