Skip to content

Commit 71cd475

Browse files
committed
Fixed callback
1 parent dd80390 commit 71cd475

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Diff/Renderer/Html/Array.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,12 @@ private function formatLines($lines)
185185
/**
186186
* Replace a string containing spaces with a HTML representation using  .
187187
*
188-
* @param string $spaces The string of spaces.
188+
* @param string $matches Regex matches array.
189189
* @return string The HTML representation of the string.
190190
*/
191-
public static function fixSpaces($spaces='')
191+
public static function fixSpaces($matches)
192192
{
193+
$spaces = isset($matches[1]) ? $matches[1] : '';
193194
$count = strlen($spaces);
194195
if($count == 0) {
195196
return '';

0 commit comments

Comments
 (0)