| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 6 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function actionIndex() |
||
| 28 | { |
||
| 29 | $historyFile = Yii::$app->config->historyFile; |
||
| 30 | $parser = new MarkdownParser(); |
||
| 31 | $history = $parser->parsePath($historyFile); |
||
| 32 | $gitlog = new GitLogParser(); |
||
| 33 | $gitlog->parseGitLog(); |
||
| 34 | $history->merge($gitlog->getHistory()); |
||
| 35 | $renderer = new MarkdownRenderer(); |
||
| 36 | file_put_contents($historyFile, $renderer->render($history)); |
||
| 37 | } |
||
| 38 | |||
| 49 |