We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd80390 commit 71cd475Copy full SHA for 71cd475
lib/Diff/Renderer/Html/Array.php
@@ -185,11 +185,12 @@ private function formatLines($lines)
185
/**
186
* Replace a string containing spaces with a HTML representation using .
187
*
188
- * @param string $spaces The string of spaces.
+ * @param string $matches Regex matches array.
189
* @return string The HTML representation of the string.
190
*/
191
- public static function fixSpaces($spaces='')
+ public static function fixSpaces($matches)
192
{
193
+ $spaces = isset($matches[1]) ? $matches[1] : '';
194
$count = strlen($spaces);
195
if($count == 0) {
196
return '';
0 commit comments