1 diff.inc private DiffEngine::lineHash($line)

Returns the whole line if it's small enough, or the MD5 hash otherwise

Parameters

$line string:

Return value

string:

File

core/includes/diff.inc, line 284
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Class

DiffEngine
Class used internally by Diff to actually compute the diffs.

Code

private function lineHash($line) {
  if (strlen($line) > self::MAX_XREF_LENGTH) {
    return md5($line);
  }
  else {
    return $line;
  }
}