1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Optimize replace new lines

This commit is contained in:
Vitaliy Zhuk
2015-04-15 11:15:37 +03:00
parent a54d460500
commit 1a14403060

View File

@@ -154,6 +154,6 @@ class LineFormatter extends NormalizerFormatter
return $str;
}
return strtr($str, array("\r\n" => ' ', "\r" => ' ', "\n" => ' '));
return str_replace(array("\r\n", "\r", "\n"), ' ', $str);
}
}