Text_Diff::isEmpty

Advertisement

Summery Summery

Checks for an empty diff.

Syntax Syntax

Text_Diff::isEmpty()

Return Return

(boolean) True if two sequences were identical.

Source Source

File: wp-includes/Text/Diff.php

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.