Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bin/composer-git-merge-driver
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ if (count($conflicts)) {
$parts[] = str_repeat('>', $markerLen);
return implode("\n", $parts);
}, $merged);
}

// fix the indentation per the user's preference
if ($indentation !== $defaultIndentation) {
$merged = preg_replace_callback("/^(?:{$defaultIndentation})+/m", function($matches) use ($indentation) {
return str_repeat($indentation, strlen($matches[0]) / 4);
}, $merged);
}
// fix the indentation per the user's preference
if ($indentation !== $defaultIndentation) {
$merged = preg_replace_callback("/^(?:{$defaultIndentation})+/m", function($matches) use ($indentation) {
return str_repeat($indentation, strlen($matches[0]) / 4);
}, $merged);
}

// update the file
Expand Down