1 diff.inc public WordLevelDiff::closing()

Return value

array:

Overrides Diff::closing

File

core/includes/diff.inc, line 944
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Class

WordLevelDiff

Code

public function closing() {
  $closing = new HWLDFWordAccumulator;

  foreach ($this->edits as $edit) {
    if ($edit->type == 'copy') {
      $closing->addWords($edit->closing);
    }
    elseif ($edit->closing) {
      $closing->addWords($edit->closing, 'ins');
    }
  }
  $lines = $closing->getLines();
  return $lines;
}