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
125125 */
126126 public function generateLinesEqual (array $ changes ): string
127127 {
128- $ html = '' ;
129- $ headerClass = '' ;
128+ $ html = '' ;
130129
131130 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+
133134 if (!$ lineNo && $ this ->lastDeleted !== null ) {
134135 $ headerClass = 'ChangeDelete ' ;
135136 }
@@ -153,12 +154,12 @@ public function generateLinesEqual(array $changes): string
153154 */
154155 public function generateLinesInsert (array $ changes ): string
155156 {
156- $ html = '' ;
157- $ headerClass = '' ;
157+ $ html = '' ;
158158
159159 foreach ($ changes ['changed ' ]['lines ' ] as $ lineNo => $ line ) {
160160 $ this ->lineOffset ++;
161- $ toLine = $ changes ['base ' ]['offset ' ] + $ this ->lineOffset ;
161+ $ toLine = $ changes ['base ' ]['offset ' ] + $ this ->lineOffset ;
162+ $ headerClass = '' ;
162163 if (!$ lineNo && $ this ->lastDeleted !== null ) {
163164 $ headerClass = 'ChangeDelete ' ;
164165 }
You can’t perform that action at this time.
0 commit comments