File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ private function formatLines($lines)
177
177
$ lines = array_map (array ($ this , 'ExpandTabs ' ), $ lines );
178
178
$ lines = array_map (array ($ this , 'HtmlSafe ' ), $ lines );
179
179
foreach ($ lines as &$ line ) {
180
- $ line = preg_replace ('# ( +)|^ #e ' , "\$ this-> fixSpaces(' \\ 1') " , $ line );
180
+ $ line = preg_replace_callback ('# ( +)|^ # ' , __CLASS__ . " :: fixSpaces " , $ line );
181
181
}
182
182
return $ lines ;
183
183
}
@@ -188,7 +188,7 @@ private function formatLines($lines)
188
188
* @param string $spaces The string of spaces.
189
189
* @return string The HTML representation of the string.
190
190
*/
191
- function fixSpaces ($ spaces ='' )
191
+ public static function fixSpaces ($ spaces ='' )
192
192
{
193
193
$ count = strlen ($ spaces );
194
194
if ($ count == 0 ) {
You can’t perform that action at this time.
0 commit comments