46 foreach ( $diff->getEdits() as $edit ) {
47 switch ( $edit->getType() ) {
49 foreach ( $edit->getClosing() as $line ) {
53 'newline' => $newline++
58 foreach ( $edit->getOrig() as $line ) {
62 'oldline' => $oldline++,
67 foreach ( $edit->getOrig() as $key => $line ) {
71 'new' => $edit->getClosing( $key ),
72 'oldline' => $oldline++,
73 'newline' => $newline++,
78 $oldline += $edit->norig();
79 $newline += $edit->norig();