49 list( $wordsBefore, $wordsBeforeStripped ) = $this->split( $linesBefore );
50 list( $wordsAfter, $wordsAfterStripped ) = $this->split( $linesAfter );
53 parent::__construct( $wordsBeforeStripped, $wordsAfterStripped );
56 $this->edits = [
new DiffOpChange( $linesBefore, $linesAfter ) ];
60 $editCount = count( $this->edits );
61 for ( $i = 0; $i < $editCount; $i++ ) {
62 $orig = &$this->edits[$i]->orig;
63 if ( is_array( $orig ) ) {
64 $orig = array_slice( $wordsBefore, $xi, count( $orig ) );
65 $xi += count( $orig );
68 $closing = &$this->edits[$i]->closing;
69 if ( is_array( $closing ) ) {
70 $closing = array_slice( $wordsAfter, $yi, count( $closing ) );
71 $yi += count( $closing );