src/I18n/Gettext/Generators/Po.php
private static function multilineQuote($string)
    {
        $lines = \explode("\n", $string);
        $last = \count($lines) - 1;

        foreach ($lines as $k => $line) {
            if ($k === $last) {
                $lines[$k] = self::convertString($line);
            } else {
                $lines[$k] = self::convertString($line . "\n");
            }
        }

        return $lines;
    }
private static function multilineQuote($string)
    {
        $lines = \explode("\n", $string);
        $last = \count($lines) - 1;

        foreach ($lines as $k => $line) {
            if ($k === $last) {
                $lines[$k] = self::convertString($line);
            } else {
                $lines[$k] = self::convertString($line . "\n");
            }
        }

        return $lines;
    }
private static function multilineQuote ( $ string ) { $ lines = \ explode ( "\n" , $ string ) ; $ last = \ count ( $ lines ) - 1 ; foreach ( $ lines as $ k => $ line ) { if ( $ k === $ last ) { $ lines [ $ k ] = self :: convertString ( $ line ) ; } else { $ lines [ $ k ] = self :: convertString ( $ line . "\n" ) ; } } return $ lines ; }
Escapes and adds double quotes to a string.

@param string $string

@return array
Escapes and adds double quotes to a string .