You are here

function Diff::isEmpty in Diff 6

Same name and namespace in other branches
  1. 5.2 DiffEngine.php \Diff::isEmpty()
  2. 5 DiffEngine.php \Diff::isEmpty()
  3. 6.2 DiffEngine.php \Diff::isEmpty()
  4. 7.3 DiffEngine.php \Diff::isEmpty()
  5. 7.2 DiffEngine.php \Diff::isEmpty()

* Check for empty diff. * *

Return value

bool True iff two sequences were identical.

File

./DiffEngine.php, line 581

Class

Diff
Class representing a 'diff' between two sequences of strings. @todo document @private @subpackage DifferenceEngine

Code

function isEmpty() {
  foreach ($this->edits as $edit) {
    if ($edit->type != 'copy') {
      return false;
    }
  }
  return true;
}