File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
lib/jblond/Diff/Renderer/Html Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -125,11 +125,12 @@ public function generateSkippedLines(): string
125
125
*/
126
126
public function generateLinesEqual (array $ changes ): string
127
127
{
128
- $ html = '' ;
129
- $ headerClass = '' ;
128
+ $ html = '' ;
130
129
131
130
foreach ($ changes ['base ' ]['lines ' ] as $ lineNo => $ line ) {
132
- $ fromLine = $ changes ['base ' ]['offset ' ] + $ lineNo + 1 + $ this ->lineOffset ;
131
+ $ fromLine = $ changes ['base ' ]['offset ' ] + $ lineNo + 1 + $ this ->lineOffset ;
132
+ $ headerClass = '' ;
133
+
133
134
if (!$ lineNo && $ this ->lastDeleted !== null ) {
134
135
$ headerClass = 'ChangeDelete ' ;
135
136
}
@@ -153,12 +154,12 @@ public function generateLinesEqual(array $changes): string
153
154
*/
154
155
public function generateLinesInsert (array $ changes ): string
155
156
{
156
- $ html = '' ;
157
- $ headerClass = '' ;
157
+ $ html = '' ;
158
158
159
159
foreach ($ changes ['changed ' ]['lines ' ] as $ lineNo => $ line ) {
160
160
$ this ->lineOffset ++;
161
- $ toLine = $ changes ['base ' ]['offset ' ] + $ this ->lineOffset ;
161
+ $ toLine = $ changes ['base ' ]['offset ' ] + $ this ->lineOffset ;
162
+ $ headerClass = '' ;
162
163
if (!$ lineNo && $ this ->lastDeleted !== null ) {
163
164
$ headerClass = 'ChangeDelete ' ;
164
165
}
You can’t perform that action at this time.
0 commit comments