mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +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 $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