44 foreach ( $diff->getEdits() as $edit ) {
45 switch ( $edit->getType() ) {
47 foreach ( $edit->getClosing() as
$line ) {
51 'newline' => $newline++
56 foreach ( $edit->getOrig() as
$line ) {
60 'oldline' => $oldline++,
65 foreach ( $edit->getOrig() as $key =>
$line ) {
69 'new' => $edit->getClosing( $key ),
70 'oldline' => $oldline++,
71 'newline' => $newline++,
76 $oldline += $edit->norig();
77 $newline += $edit->norig();