Skip to content

Commit ddfeeb1

Browse files
committed
remove potentially unneeded code
1 parent 3408549 commit ddfeeb1

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Logs/LaravelLog.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ protected function parseText(array &$matches = []): void
2626
$length = strlen($this->text);
2727

2828
$this->extractContextsFromFullText();
29-
$this->normalizeContextLineEndings();
3029

3130
$this->extra['log_size'] = $length;
3231
$this->extra['log_size_formatted'] = Utils::bytesForHumans($length);
@@ -192,19 +191,6 @@ protected function getJsonStringsFromFullText(): array
192191
return $json_strings;
193192
}
194193

195-
protected function normalizeContextLineEndings(): void
196-
{
197-
if (empty($this->context)) {
198-
return;
199-
}
200-
201-
foreach ($this->context as $key => $value) {
202-
if (is_string($value)) {
203-
$this->context[$key] = str_replace(["\r\n", "\r"], "\n", $value);
204-
}
205-
}
206-
}
207-
208194
protected function filterStackTrace(string $text): string
209195
{
210196
// Normalize line endings for cross-platform compatibility

0 commit comments

Comments
 (0)