42 foreach ( $diff->getEdits() as $edit ) {
43 switch ( $edit->getType() ) {
45 foreach ( $edit->getClosing() as
$line ) {
49 'newline' => $newline++
54 foreach ( $edit->getOrig() as
$line ) {
58 'oldline' => $oldline++,
63 foreach ( $edit->getOrig() as $key =>
$line ) {
67 'new' => $edit->getClosing( $key ),
68 'oldline' => $oldline++,
69 'newline' => $newline++,
74 $oldline += count( $edit->getOrig() );
75 $newline += count( $edit->getOrig() );