Text_Diff::isEmpty()publicWP 1.0

Checks for an empty diff.

Method of the class: Text_Diff{}

No Hooks.

Return

true|false. True if two sequences were identical.

Usage

$Text_Diff = new Text_Diff();
$Text_Diff->isEmpty();

Text_Diff::isEmpty() code WP 6.5.2

function isEmpty()
{
    foreach ($this->_edits as $edit) {
        if (!is_a($edit, 'Text_Diff_Op_copy')) {
            return false;
        }
    }
    return true;
}