56 $this->edits = $eng->diff( $from_lines, $to_lines );
81 foreach ( $this->edits as $edit ) {
82 $rev->edits[] = $edit->reverse();
94 foreach ( $this->edits as $edit ) {
95 if ( $edit->type !=
'copy' ) {
112 foreach ( $this->edits as $edit ) {
113 if ( $edit->type ==
'copy' ) {
114 $lcs += count( $edit->orig );
132 foreach ( $this->edits as $edit ) {
134 array_splice(
$lines, count(
$lines ), 0, $edit->orig );
152 foreach ( $this->edits as $edit ) {
153 if ( $edit->closing ) {
154 array_splice(
$lines, count(
$lines ), 0, $edit->closing );