1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 01:56:18 +02:00

Removed unnecessary php version checks after php dependency bump to 7.0

This commit is contained in:
Jeroen Thora
2015-12-20 15:53:48 +01:00
parent cb641a8a19
commit 8ceda1b62e
6 changed files with 8 additions and 54 deletions

View File

@@ -132,10 +132,7 @@ class HtmlFormatter extends NormalizerFormatter
}
$data = $this->normalize($data);
if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
return json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
}
return str_replace('\\/', '/', json_encode($data));
return json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
}
}