| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | final class DefaultFormatter implements ChangelogFormatterInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Generates a changelog in the default format. |
||
| 18 | * |
||
| 19 | * @param CommitCollection $commitCollection a collection of commits grouped into sections |
||
| 20 | * @param string $version the version number for which the changelog is generated |
||
| 21 | * |
||
| 22 | * @return string The formatted changelog as a string. |
||
| 23 | * |
||
| 24 | * The changelog includes: |
||
| 25 | * - The version number and date at the top. |
||
| 26 | * - Sections with their titles. |
||
| 27 | * - Commits listed under each section without preserving scopes. |
||
| 28 | */ |
||
| 29 | 14 | public function __invoke(CommitCollection $commitCollection, string $version): string |
|
| 45 |