61 $this->edits = $eng->diff( $from_lines, $to_lines );
86 foreach ( $this->edits as $edit ) {
87 $rev->edits[] = $edit->reverse();
99 foreach ( $this->edits as $edit ) {
100 if ( $edit->type !=
'copy' ) {
117 foreach ( $this->edits as $edit ) {
118 if ( $edit->type ==
'copy' ) {
119 $lcs += count( $edit->orig );
137 foreach ( $this->edits as $edit ) {
139 array_splice(
$lines, count(
$lines ), 0, $edit->orig );
157 foreach ( $this->edits as $edit ) {
158 if ( $edit->closing ) {
159 array_splice(
$lines, count(
$lines ), 0, $edit->closing );
168class_alias( Diff::class,
'Diff' );
if(!file_exists( $CREDITS)) $lines