1.20.x diff.inc | Diff::isEmpty() |
Check for empty diff.
Return value
bool True if two sequences were identical.:
File
- includes/
diff.inc, line 698 - A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)
Class
- Diff
- Class representing a 'diff' between two sequences of strings. @private
Code
function isEmpty() {
foreach ($this->edits as $edit) {
if ($edit->type != 'copy') {
return FALSE;
}
}
return TRUE;
}