1 diff.inc public WordLevelDiff::closing()

Return value

array:

Overrides Diff::closing

File

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

Class

WordLevelDiff
@private

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;
}