43 foreach ( $diff->getEdits() as $edit ) {
44 switch ( $edit->getType() ) {
46 foreach ( $edit->getClosing() as
$line ) {
50 'newline' => $newline++
55 foreach ( $edit->getOrig() as
$line ) {
59 'oldline' => $oldline++,
64 foreach ( $edit->getOrig() as $key =>
$line ) {
68 'new' => $edit->getClosing( $key ),
69 'oldline' => $oldline++,
70 'newline' => $newline++,
75 $oldline += count( $edit->getOrig() );
76 $newline += count( $edit->getOrig() );