We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d82ac4 commit 29dc002Copy full SHA for 29dc002
1 file changed
lib/Diff/Renderer/Html/Array.php
@@ -177,7 +177,7 @@ private function formatLines($lines)
177
$lines = array_map(array($this, 'ExpandTabs'), $lines);
178
$lines = array_map(array($this, 'HtmlSafe'), $lines);
179
foreach($lines as &$line) {
180
- $line = preg_replace('# ( +)|^ #e', "\$this->fixSpaces('\\1')", $line);
+ $line = preg_replace_callback('# ( +)|^ #', __CLASS__."::fixSpaces", $line);
181
}
182
return $lines;
183
@@ -188,7 +188,7 @@ private function formatLines($lines)
188
* @param string $spaces The string of spaces.
189
* @return string The HTML representation of the string.
190
*/
191
- function fixSpaces($spaces='')
+ public static function fixSpaces($spaces='')
192
{
193
$count = strlen($spaces);
194
if($count == 0) {
0 commit comments