Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
40 | 2 | public function execute(Config $config, IO $io, Repository $repository, Config\Action $action): void |
|
41 | { |
||
42 | 2 | $options = $action->getOptions(); |
|
43 | 2 | $oldMsg = $repository->getCommitMsg(); |
|
44 | |||
45 | 2 | if (!$repository->isMerging()) { |
|
46 | 2 | $repository->setCommitMsg(new CommitMessage($options->get('message', ''), $oldMsg->getCommentCharacter())); |
|
47 | } |
||
50 |