Skip to content

Commit cef85b5

Browse files
committed
Fix Merged::generateLinesReplace()
- Mess Detector reported unused variable. Although always created and used, it's nicer to declare it on beforehand.
1 parent 6c95ccd commit cef85b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jblond/Diff/Renderer/Html/Merged.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public function generateLinesReplace(array $changes): string
199199
}
200200

201201
// Capture added parts.
202+
$addedParts = [];
202203
preg_match_all('/\x0.*?\x1/', $changes['changed']['lines'][$lineNo], $addedParts, PREG_PATTERN_ORDER);
203204
array_unshift($addedParts[0], '');
204205

0 commit comments

Comments
 (0)