Skip to content

Commit

Permalink
Fixed callback
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Oct 15, 2013
1 parent dd80390 commit 71cd475
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Diff/Renderer/Html/Array.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,12 @@ private function formatLines($lines)
/**
* Replace a string containing spaces with a HTML representation using  .
*
* @param string $spaces The string of spaces.
* @param string $matches Regex matches array.
* @return string The HTML representation of the string.
*/
public static function fixSpaces($spaces='')
public static function fixSpaces($matches)
{
$spaces = isset($matches[1]) ? $matches[1] : '';
$count = strlen($spaces);
if($count == 0) {
return '';
Expand Down

0 comments on commit 71cd475

Please sign in to comment.