mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -36,6 +36,14 @@ class StringUtil
|
||||
return trim($string);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts both CRLF and CR to LF.
|
||||
*/
|
||||
public static function normalizeNewlines(string $string): string
|
||||
{
|
||||
return str_replace(["\r\n", "\r"], "\n", $string);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a fully-qualified class name to a block prefix.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user