src/I18n/Gettext/Generators/Po.php
private static function addLines(array &$lines, $name, $value)
    {
        $newLines = self::multilineQuote($value);

        if (\count($newLines) === 1) {
            $lines[] = $name . ' ' . $newLines[0];
        } else {
            $lines[] = $name . ' ""';

            foreach ($newLines as $line) {
                $lines[] = $line;
            }
        }
    }
private static function addLines(array &$lines, $name, $value)
    {
        $newLines = self::multilineQuote($value);

        if (\count($newLines) === 1) {
            $lines[] = $name . ' ' . $newLines[0];
        } else {
            $lines[] = $name . ' ""';

            foreach ($newLines as $line) {
                $lines[] = $line;
            }
        }
    }
private static function addLines ( array & $ lines , $ name , $ value ) { $ newLines = self :: multilineQuote ( $ value ) ; if ( \ count ( $ newLines ) === 1 ) { $ lines [ ] = $ name . ' ' . $ newLines [ 0 ] ; } else { $ lines [ ] = $ name . ' ""' ; foreach ( $ newLines as $ line ) { $ lines [ ] = $ line ; } } }
Add one or more lines depending whether the string is multiline or not.

@param array  &$lines
@param string $name
@param string $value
Add one or more lines depending whether the string is multiline or not .