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