Skip to content

Commit a44f99d

Browse files
author
Petr Kotek
committed
Make Diff_Renderer_Html_Array::formatLines method protected
`Diff_Renderer_Html_Array::formatLines` method should be protected (not private) as it's being called from subclass `Diff_Renderer_SideBySide_Html`
1 parent 98c81c1 commit a44f99d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Diff/Renderer/Html/Array.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private function getChangeExtent($fromLine, $toLine)
172172
* @param array $lines Array of lines to format.
173173
* @return array Array of the formatted lines.
174174
*/
175-
private function formatLines($lines)
175+
protected function formatLines($lines)
176176
{
177177
$lines = array_map(array($this, 'ExpandTabs'), $lines);
178178
$lines = array_map(array($this, 'HtmlSafe'), $lines);
@@ -221,4 +221,4 @@ private function htmlSafe($string)
221221
{
222222
return htmlspecialchars($string, ENT_NOQUOTES, 'UTF-8');
223223
}
224-
}
224+
}

0 commit comments

Comments
 (0)