private function ident($text, $length = 4, $chunk = 76, $break = "\n") {
        $lines = [];

        foreach(explode($break, $text) as $line) {
            $text = trim(wordwrap($line, $chunk - $length, $break));
            foreach(explode($break, $text) as $part) {
                $lines[] = str_repeat(" ", $length).$part;
            }
        }

        return implode($break, $lines);
    }
private function ident($text, $length = 4, $chunk = 76, $break = "\n") {
        $lines = [];

        foreach(explode($break, $text) as $line) {
            $text = trim(wordwrap($line, $chunk - $length, $break));
            foreach(explode($break, $text) as $part) {
                $lines[] = str_repeat(" ", $length).$part;
            }
        }

        return implode($break, $lines);
    }
private function ident ( $ text , $ length = 4 , $ chunk = 76 , $ break = "\n" ) { $ lines = [ ] ; foreach ( explode ( $ break , $ text ) as $ line ) { $ text = trim ( wordwrap ( $ line , $ chunk - $ length , $ break ) ) ; foreach ( explode ( $ break , $ text ) as $ part ) { $ lines [ ] = str_repeat ( " " , $ length ) . $ part ; } } return implode ( $ break , $ lines ) ; }
Idents and chunk splits a text
Idents and chunk splits a text