mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +02:00
HtmlFormatter methods accessibility
Please, make them protected instead of private to enable comfortable overriding of HtmlFormatter class.
This commit is contained in:
committed by
Jordi Boggiano
parent
33df788930
commit
1c75491af2
@@ -51,7 +51,7 @@ class HtmlFormatter extends NormalizerFormatter
|
|||||||
* @param bool $escapeTd false if td content must not be html escaped
|
* @param bool $escapeTd false if td content must not be html escaped
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function addRow($th, $td = ' ', $escapeTd = true)
|
protected function addRow($th, $td = ' ', $escapeTd = true)
|
||||||
{
|
{
|
||||||
$th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8');
|
$th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8');
|
||||||
if ($escapeTd) {
|
if ($escapeTd) {
|
||||||
@@ -68,7 +68,7 @@ class HtmlFormatter extends NormalizerFormatter
|
|||||||
* @param int $level Error level
|
* @param int $level Error level
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function addTitle($title, $level)
|
protected function addTitle($title, $level)
|
||||||
{
|
{
|
||||||
$title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8');
|
$title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user