src/Console/Buffer.php
public function setFormat($format)
    {
        $this->format = $format;
        if ($this->format === self::FORMAT_UNIX) {
            $this->newline = "\n";
        } elseif ($this->format === self::FORMAT_DOS) {
            $this->newline = "\r\n";
        }
    }
public function setFormat($format)
    {
        $this->format = $format;
        if ($this->format === self::FORMAT_UNIX) {
            $this->newline = "\n";
        } elseif ($this->format === self::FORMAT_DOS) {
            $this->newline = "\r\n";
        }
    }
public function setFormat ( $ format ) { $ this -> format = $ format ; if ( $ this -> format === self :: FORMAT_UNIX ) { $ this -> newline = "\n" ; } elseif ( $ this -> format === self :: FORMAT_DOS ) { $ this -> newline = "\r\n" ; } }
Set line format

@param int $format Buffer::FORMAT_UNIX or Buffer::FORMAT_DOS
Set line format