We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb3f7c commit 0856f82Copy full SHA for 0856f82
1 file changed
lib/Diff/Renderer/Html/Array.php
@@ -190,12 +190,13 @@ protected function formatLines($lines)
190
*/
191
private function fixSpaces(array $matches)
192
{
193
- $spaces = $matches[1];
194
- $count = strlen($spaces);
195
- if($count == 0) {
+ if (count($matches) < 2) {
196
return '';
197
}
198
+ $spaces = $matches[1];
+ $count = strlen($spaces);
199
+
200
$div = floor($count / 2);
201
$mod = $count % 2;
202
return str_repeat(' ', $div).str_repeat(' ', $mod);
0 commit comments