protected function DiffEngine::_line_hash in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Diff/Engine/DiffEngine.php \Drupal\Component\Diff\Engine\DiffEngine::_line_hash()
Returns the whole line if it's small enough, or the MD5 hash otherwise.
File
- lib/
Drupal/ Component/ Diff/ Engine/ DiffEngine.php, line 141 - Contains \Drupal\Component\Diff\Engine\DiffEngine.
Class
- DiffEngine
- Class used internally by Diff to actually compute the diffs.
Namespace
Drupal\Component\Diff\EngineCode
protected function _line_hash($line) {
if (Unicode::strlen($line) > $this::MAX_XREF_LENGTH) {
return md5($line);
}
else {
return $line;
}
}