File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ protected function renderTableReplace(array $change): string
214
214
$ oldLineNum = $ change ['old ' ]['offset ' ] + $ no + 1 ;
215
215
216
216
if (isset ($ change ['new ' ]['lines ' ][$ no ])) {
217
- $ newLineNum = $ change ['old ' ]['offset ' ] + $ no + 1 ;
217
+ $ newLineNum = $ change ['new ' ]['offset ' ] + $ no + 1 ;
218
218
$ newLine = '<span> ' . $ change ['new ' ]['lines ' ][$ no ] . '</span> ' ;
219
219
} else {
220
220
$ newLineNum = null ;
@@ -225,7 +225,7 @@ protected function renderTableReplace(array $change): string
225
225
'<tr> ' .
226
226
$ this ->renderLineNumberColumn ('old ' , $ oldLineNum ) .
227
227
'<td class="old"><span> ' . $ oldLine . '</span></td> ' .
228
- $ this ->renderLineNumberColumn ('new ' , $ oldLineNum ) .
228
+ $ this ->renderLineNumberColumn ('new ' , $ newLineNum ) .
229
229
'<td class="new"> ' . $ newLine . '</td> ' .
230
230
'</tr> ' ;
231
231
}
You can’t perform that action at this time.
0 commit comments