protected normalizeWhitespaces ( string $value ) : string | ||
$value | string | |
return | string |
protected function normalizeWhitespaces($value)
{
return strtr(preg_replace('/\\s+$/m', '', $value), array("\r\n" => PHP_EOL, "\n" => PHP_EOL));
}