mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
Merge pull request #542 from ZhukV/master
Optimize replace new lines for LineFormatter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user