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