lib/MwbExporter/Object/Base.php
protected function wrapLines($lines, $indentationLevel = 0)
    {
        if ($wrapper = $this->getOption('wrapper')) {
            $lines = explode("\n", $lines);
            for ($i = 0; $i < count($lines); $i++) {
                // first line ignored
                if ($i === 0) {
                    continue;
                }
                $line = $lines[$i];
                if ($indentationLevel && $i < count($lines) - 1) {
                    $line = str_repeat($this->getOption('indentation'), $indentationLevel) . $line;
                }
                $lines[$i] = sprintf($wrapper, $line);
            }
            $lines = implode("\n", $lines);
        }

        return $lines;
    }
protected function wrapLines($lines, $indentationLevel = 0)
    {
        if ($wrapper = $this->getOption('wrapper')) {
            $lines = explode("\n", $lines);
            for ($i = 0; $i < count($lines); $i++) {
                // first line ignored
                if ($i === 0) {
                    continue;
                }
                $line = $lines[$i];
                if ($indentationLevel && $i < count($lines) - 1) {
                    $line = str_repeat($this->getOption('indentation'), $indentationLevel) . $line;
                }
                $lines[$i] = sprintf($wrapper, $line);
            }
            $lines = implode("\n", $lines);
        }

        return $lines;
    }
protected function wrapLines ( $ lines , $ indentationLevel = 0 ) { if ( $ wrapper = $ this -> getOption ( 'wrapper' ) ) { $ lines = explode ( "\n" , $ lines ) ; for ( $ i = 0 ; $ i < count ( $ lines ) ; $ i ++ ) { // first line ignored if ( $ i === 0 ) { continue ; } $ line = $ lines [ $ i ] ; if ( $ indentationLevel && $ i < count ( $ lines ) - 1 ) { $ line = str_repeat ( $ this -> getOption ( 'indentation' ) , $ indentationLevel ) . $ line ; } $ lines [ $ i ] = sprintf ( $ wrapper , $ line ) ; } $ lines = implode ( "\n" , $ lines ) ; } return $ lines ; }
Wrap text.

@param string $lines      The text
@param int    $indentationLevel
@return string
Wrap text .