src/Sentence.php
private static function linebreakSplit($text)
    {
        $lines = [];
        $line = '';

        foreach (Multibyte::split('([\r\n]+)', $text, -1, PREG_SPLIT_DELIM_CAPTURE) as $part) {
            $line .= $part;
            if (Multibyte::trim($part) === '') {
                $lines[] = $line;
                $line = '';
            }
        }
        $lines[] = $line;

        return $lines;
    }
private static function linebreakSplit($text)
    {
        $lines = [];
        $line = '';

        foreach (Multibyte::split('([\r\n]+)', $text, -1, PREG_SPLIT_DELIM_CAPTURE) as $part) {
            $line .= $part;
            if (Multibyte::trim($part) === '') {
                $lines[] = $line;
                $line = '';
            }
        }
        $lines[] = $line;

        return $lines;
    }
private static function linebreakSplit ( $ text ) { $ lines = [ ] ; $ line = '' ; foreach ( Multibyte :: split ( '([\r\n]+)' , $ text , - 1 , PREG_SPLIT_DELIM_CAPTURE ) as $ part ) { $ line .= $ part ; if ( Multibyte :: trim ( $ part ) === '' ) { $ lines [ ] = $ line ; $ line = '' ; } } $ lines [ ] = $ line ; return $ lines ; }
Breaks a piece of text into lines by linebreak.
Eats up any linebreak characters as if one.

Multibyte.php safe

@param string $text
@return string[]
Breaks a piece of text into lines by linebreak . Eats up any linebreak characters as if one .