1 diff.inc public WordLevelDiff::orig()

Return value

array:

Overrides Diff::orig

File

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

Class

WordLevelDiff
@private

Code

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

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